# # Ctrl-a is the prefix. # set -g prefix C-a bind C-a send-prefix unbind C-b # 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 # 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 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 #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 \;\ set -g mouse-resize=pane on \;\ set -g mouse-select-pane on \;\ set -g mouse-select-window on \;\ display 'Mouse: ON' 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 \;\ display 'Mouse: OFF'