Skip to content

Instantly share code, notes, and snippets.

@homelinen
Created May 16, 2017 09:12
Show Gist options
  • Save homelinen/ba3aace4e40d5b197af527dd8b468209 to your computer and use it in GitHub Desktop.
Save homelinen/ba3aace4e40d5b197af527dd8b468209 to your computer and use it in GitHub Desktop.
git diff
diff --git a/tmux-osx.conf b/tmux-osx.conf
index 8093298..a7f6295 100644
--- a/tmux-osx.conf
+++ b/tmux-osx.conf
@@ -1,8 +1,8 @@
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
-bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
+bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "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"
+unbind -T copy-mode-vi Enter
+bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
set -g default-terminal "screen-256color"
diff --git a/tmux.conf b/tmux.conf
index 94a2a01..890ca82 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -64,7 +64,7 @@ bind -r L resize-pane -R 5
set -g default-shell $SHELL
# Setup 'v' to begin selection as in Vim
-bind-key -t vi-copy v begin-selection
+bind-key -T copy-mode-vi v begin-selection
# We like 256 colours
set -ga terminal-overrides ",xterm-termite:Tc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment