### Key-bindings ### # Replace the default prefix C-b with C-a set-option -g prefix C-a unbind-key C-b bind-key C-a send-prefix # C-Left & C-Right are used by rxvt-unicode,unbind these keys,we use C-{h,j,k,l} unbind-key C-Left unbind-key C-Right unbind-key C-Up unbind-key C-Down # Resize pane bind-key -r C-h resize-pane -L bind-key -r C-j resize-pane -D bind-key -r C-k resize-pane -U bind-key -r C-l resize-pane -R bind-key Tab select-pane -t :.+1 # Move between windows unbind-key l bind-key C-o last-window bind-key C-n next-window bind-key C-p previous-window # Move between panels bind-key -r h select-pane -L bind-key -r j select-pane -D bind-key -r k select-pane -U bind-key -r l select-pane -R ### Options ### # Auto rename panel set-option -g automatic-rename on # Set status bar set-option -g status-fg colour26 set-option -g status-bg colour235 # Set terminal info set-option -g default-terminal "screen-256color" #set-option -g default-terminal "xterm-256color" #set-option -g default-shell "/opt/local/bin/zsh" # Set default path set-option -g default-path "$PWD" # Use mouse to select pane #set-option -g mouse-select-pane on ### Startup ### # Setting environment set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY GPG_AGENT_INFO TERM_PROGRAM"