Created
May 16, 2017 09:12
-
-
Save homelinen/ba3aace4e40d5b197af527dd8b468209 to your computer and use it in GitHub Desktop.
Revisions
-
Calum Gilchrist created this gist
May 16, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ 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"