Skip to content

Commit

Permalink
Don't attempt to use xclip when X is not available (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenisanerd authored Apr 22, 2024
1 parent 600f05e commit cf6312f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ssh/rootfs/root/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
set -s escape-time 0
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
if-shell '[ -n "$DISPLAY" ]' {
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
}

0 comments on commit cf6312f

Please sign in to comment.