X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.tmux.conf;h=c2c3688e179adce7a9bdfbd6cf1983999e8c2d08;hp=4e5fda4ec36b7c7750676b2fad704a8d8de2a360;hb=422d35463c5670d03dfd078368a161ab76ed535e;hpb=e7ec1a4e869c548c8877d4fbae151fbb2b4d9faf diff --git a/.tmux.conf b/.tmux.conf index 4e5fda4..c2c3688 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -9,19 +9,20 @@ set -g status-keys vi # Don't wait so long to parse escape sequences. set -s escape-time 100 -# Ensure KRB5CCNAME is preserved in the environment. -set -g update-environment 'DISPLAY WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION KRB5CCNAME' - # Clock. setw -g clock-mode-colour white setw -g clock-mode-style 24 +# Scrollback buffer. +set -g history-limit 4096 + ################################################################################ # Screen compatibility. ################################################################################ set -g prefix C-p unbind C-b bind C-p last-window +bind p send-keys C-p bind C-l refresh-client bind l refresh-client bind S split-window -v @@ -42,17 +43,20 @@ bind j select-pane -D bind C-j select-pane -D bind k select-pane -U bind C-k select-pane -U -# Previous and next window kinda like Vim. -bind h previous-window -bind C-h previous-window -bind l next-window -bind C-l next-window -# And for panes. -bind H select-pane -L -bind L select-pane -R +# Previous and next panes kinda like Vim. +bind h select-pane -L +bind C-h select-pane -L +bind l select-pane -R +bind C-l select-pane -R +# And for windows. +bind H previous-window +bind L next-window +# Last window like Vim. +bind ^ last-window +bind C-^ last-pane # Top and bottom. -bind J select-pane -t bottom -bind K select-pane -t top +bind J select-pane -D +bind K select-pane -U # Swap panes. bind w swap-pane # Show panes. @@ -60,7 +64,7 @@ bind = display-panes # Move the current pane into a separate window. bind b break-pane # Split another pane into this window. -bind B command-prompt -p "Select [.] to join:" 'join-pane -t %1' +bind B command-prompt -p "Select [.] to join:" 'join-pane -s %1' # Next pane. bind i select-pane -t :.+ bind C-i select-pane -t :.+ @@ -149,7 +153,7 @@ setw -g window-status-current-bg colour17 setw -g window-status-current-fg white # No border. set -g status-left '' -set -g status-right '' +set -g status-right '#[fg=white,bg=colour8][#H:#S]' # Window flags. setw -g window-status-current-format '[#I.#P#F #W]' setw -g window-status-format ' #I.#P#F #W '