Skip to content

Commit

Permalink
Use copy-pipe-and-cancel instead of copy-pipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikwat committed Aug 6, 2017
1 parent ea9d69d commit cc79eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ bind-key ] paste-buffer

# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X 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 copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"

set-window-option -g display-panes-time 1500

Expand Down

0 comments on commit cc79eff

Please sign in to comment.