Skip to content

Instantly share code, notes, and snippets.

@calo81
Last active September 15, 2015 13:01
Show Gist options
  • Save calo81/d72d3653d35ce1a22b6f to your computer and use it in GitHub Desktop.
Save calo81/d72d3653d35ce1a22b6f to your computer and use it in GitHub Desktop.
set-option -g default-command "reattach-to-user-namespace -l bash"
setw -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind p
bind p run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
setw -g mode-keys vi
setw -g mode-mouse on
setw -g monitor-activity on
setw -g prefix C-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment