# status line set -g status-fg cyan set -g status-bg black set -g status-attr bold set -g status-justify centre set -g status-interval 30 set -g status-left-length 40 set -g status-right-length 40 set -g status-left '[#{b:socket_path}@#h:#S/#(tmux -L #{b:socket_path} ls|wc -l)] ' set -g status-right ' [#(date +"%F %u %R")]' # terminal set -g default-terminal "xterm-256color" # key mode set -g mode-keys vi # mouse mode set -g mouse off # session # window set -g window-status-format '#I:#(echo "#T"|cut -d: -f1)#F' set -g window-status-current-format '#I:#(echo "#T"|cut -d: -f1)#F' bind s split-window -v bind v split-window -h bind n next-window bind C-n previous-window bind c new-window bind x kill-pane bind C-x kill-window bind M-x kill-session # pane set -g pane-border-fg cyan set -g pane-active-border-fg yellow set -g window-status-current-fg yellow bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R bind -r C-k resize-pane -U 1 bind -r C-j resize-pane -D 1 bind -r C-h resize-pane -L 1 bind -r C-l resize-pane -R 1 bind z resize-pane -Z # copy mode bind Escape copy-mode bind-key -T copy-mode-vi v send-keys -X begin-selection #bind -t vi-copy y copy-pipe "cat|xsel -b -i" bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel bind p paste-buffer bind C-p paste-buffer