Skip to content

Commit e8628c1

Browse files
committed
tmux: fix copy config for version 2.8
1 parent 420e522 commit e8628c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/tmux/config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft=
3838
bind -n WheelDownPane select-pane -t= \; send-keys -M
3939

4040
# Copy
41-
bind-key -t emacs-copy [ begin-selection
42-
bind-key -t emacs-copy M-w copy-pipe "reattach-to-user-namespace pbcopy"
43-
unbind -t emacs-copy Enter
44-
bind-key -t emacs-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
41+
set-option -g default-command "exec reattach-to-user-namespace -l $SHELL"
42+
bind-key -T copy-mode [ send-keys -X begin-selection
43+
bind-key -T copy-mode M-w send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
44+
bind-key -T copy-mode Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"

0 commit comments

Comments
 (0)