unbind-key C-b set-option -g prefix C-f # Refresh with source file bind-key R source-file ~/.tmux.conf # Use zsh as default shell set-option -g default-shell /bin/zsh # Enable mouse support setw -g mouse on # Split panes bind-key - split-window -v bind-key | split-window -h # Pane resizing bind-key -r Up resize-pane -U 5 bind-key -r Down resize-pane -D 5 bind-key -r Left resize-pane -L 5 bind-key -r Right resize-pane -R 5 # Ctrl-Left/Right cycles thru windows (no prefix) bind-key -n "C-h" select-window -t :- # Ctrl-Up/Down cyles thru panes (no prefix) bind-key -n "C-j" select-pane -t :.+ # Clear current pane bind-key -n "C-l" send-keys clear Enter # Copy & paste # Use vim keybindings in copy mode setw -g mode-keys vi bind-key -T copy-mode-vi v send -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"