From 1ead0fd7c6127ef77a4dab7267a452c9e5a39377 Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Wed, 10 Feb 2016 12:52:24 -0500 Subject: [PATCH] .tmux.conf revisited. --- config/.tmux.conf | 46 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/config/.tmux.conf b/config/.tmux.conf index b4c8e45..65ad295 100644 --- a/config/.tmux.conf +++ b/config/.tmux.conf @@ -1,16 +1,33 @@ +# +# Ctrl-a is the prefix. +# set -g prefix C-a bind C-a send-prefix unbind C-b -set-option -g history-limit 10000 +# Start windows from #1 (default #0) +set -g base-index 1 +# Status bar is on top. +set -g status-position top +set -g status-utf8 on + +# Keep this much of history per window. +set -g history-limit 100000 + +# 256color mode. +set -g default-terminal "screen-256color" +setw -g xterm-keys on + +# VI mode set -g status-keys vi setw -g mode-keys vi -set -g status-position top - -set -g default-terminal "screen-256color" -set-window-option -g xterm-keys on -set -g mode-mouse off +# Setup 'v' to begin selection as in Vim +bind-key -t vi-copy v begin-selection +bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" +# Update default binding of 'Enter' to also use copy-pipe +#unbind -t vi-copy Enter +#bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" #bind p paste-buffer bind h select-pane -L @@ -18,10 +35,16 @@ bind j select-pane -D bind k select-pane -U bind l select-pane -R -bind -r C-h resize-pane -L -bind -r C-j resize-pane -D -bind -r C-k resize-pane -U -bind -r C-l resize-pane -R +#bind -r C-h resize-pane -L +#bind -r C-j resize-pane -D +#bind -r C-k resize-pane -U +#bind -r C-l resize-pane -R + +#No mouse +set -g mode-mouse off +set -g mouse-select-pane off +set -g mouse-resize-pane off +set -g mouse-select-window off bind m \ set -g mode-mouse on \;\ @@ -29,7 +52,8 @@ bind m \ set -g mouse-select-pane on \;\ set -g mouse-select-window on \;\ display 'Mouse: ON' -bind m \ +bind M \ + set -g mode-mouse off \;\ set -g mouse-resize=pane off \;\ set -g mouse-select-pane off \;\ set -g mouse-select-window off \;\