# status line set -g status-style bg=black,fg=cyan,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] ' set -g status-right ' [%F %u %R]' # terminal set -g default-terminal "xterm-256color" # key mode set -g mode-keys vi # mouse mode set -g mouse off # session #bind M-x kill-session # window set -g window-status-format '#I:#{window_panes}:#(echo "#T"|cut -d: -f1):#F' set -g window-status-current-format '#I:#{window_panes}:#(echo "#T"|cut -d: -f1):#F' set -g window-status-current-style fg=yellow bind s split-window -v bind C-s split-window -v bind v split-window -h bind C-v split-window -h bind n next-window bind C-n previous-window bind c new-window bind C-c new-window #bind M-x kill-window # pane #set -g pane-border-status top set -g pane-border-style fg=cyan set -g pane-active-border-style 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 x resize-pane -Z bind C-x resize-pane -Z bind z resize-pane -Z bind C-z resize-pane -Z bind a set synchronize-panes bind C-a set synchronize-panes #bind M-x kill-pane # 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