Skip to content

Instantly share code, notes, and snippets.

@nellshamrell
Last active August 29, 2015 14:09
Show Gist options
  • Save nellshamrell/a6b9269d98945d7bc198 to your computer and use it in GitHub Desktop.
Save nellshamrell/a6b9269d98945d7bc198 to your computer and use it in GitHub Desktop.
Nell's Tmux conf
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
unbind [
bind ` copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
# after copying to a tmux buffer, hit y again to copy to clipboard
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment