~enan/dotfiles

83754a0c22070e738d5406ac76450db71b84430b — Enan Ajmain 1 year, 9 months ago d8b0521
tmux: fix clipboard to work over ssh
1 files changed, 3 insertions(+), 3 deletions(-)

M .tmux.conf
M .tmux.conf => .tmux.conf +3 -3
@@ 60,9 60,9 @@ bind m set -g mouse \; display 'Mouse #{?mouse,enabled,disabled}'
set -g mode-keys vi
set -g status-keys emacs
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
if-shell "uname -a | grep -qEi '(Microsoft|WSL)'" " \
        bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'win32yank.exe -i'"
bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -selection clipboard'
if-shell "uname -a | grep -qEi '(Microsoft|WSL)'" \
    "bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'win32yank.exe -i'"

# Create session and window
bind c new-window -ac "#{pane_current_path}"