Skip to content

Instantly share code, notes, and snippets.

@ipetepete
Last active December 22, 2015 16:45
Show Gist options
  • Save ipetepete/20a362b90bcd6d1888ae to your computer and use it in GitHub Desktop.
Save ipetepete/20a362b90bcd6d1888ae to your computer and use it in GitHub Desktop.
# Install reattach-to-user-namespace from
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set -g default-terminal "screen-256color"
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# 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"
set -g mode-mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment