X-Git-Url: https://git.madduck.net/etc/tmux.git/blobdiff_plain/5a98e2c3426667b039f0e182ec2855b5d49fb000..9031b81462561d356b270e24fb49c6405a7a29e7:/.tmux.conf?ds=sidebyside diff --git a/.tmux.conf b/.tmux.conf index 12a4ccf..73a51e9 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -2,11 +2,34 @@ set-option -g prefix C-a unbind-key C-b bind-key C-a send-prefix +# number windows from 1 for it makes shortcuts 0–9 more intuitive set-option -g base-index 1 +bind-key 0 select-window -t :=10 set-option -g status-bg black set-option -g status-fg white -set-option -g default-terminal "tmux-256color" +# set-option -g mouse on set-option -g aggressive-resize on + +# if a session is killed, kill the client +set-option -g detach-on-destroy on + +set-option -g set-titles on +set-option -g set-titles-string "#{?#{==:#{pane_title},#{host_short}},#h:#W,#T}" + +bind-key '\' confirm-before -p "kill-session #S? (y/n)" kill-session + +bind-key = set-option synchronize-panes + +set-environment -g SSH_AUTH_SOCK $VARDIR/ssh/persistent-ssh-auth.sock + +bind-key -r -T root C-Up select-pane -U +bind-key -r -T root C-Down select-pane -D +bind-key -r -T root C-Left select-pane -L +bind-key -r -T root C-Right select-pane -R + +bind-key -T prefix '{' respawn-pane +bind-key -T prefix '}' kill-pane +set-option -g remain-on-exit on