🎨 copy tmux to xsel (system) clipboard

This commit is contained in:
DannyDannyDanny 2023-11-12 16:16:55 +01:00
parent 03bed404bd
commit 11e06afe34

View file

@ -9,13 +9,14 @@ set-option -g default-terminal "screen-256color"
set-option -sa terminal-overrides ',xterm-256color:RGB' set-option -sa terminal-overrides ',xterm-256color:RGB'
# enable mouse support for switching panes/windows # enable mouse support for switching panes/windows
set -g mouse on # set -g mouse on
# extend history # extend history
set -g history-limit 100000 set -g history-limit 100000
# set vi keybindings # set vi keybindings
setw -g mode-keys vi setw -g mode-keys vi
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i --clipboard"
# reduce escape time # reduce escape time
set-option -sg escape-time 20 set-option -sg escape-time 20