tmux: Fixed copying over ssh/mosh
This commit is contained in:
@@ -36,6 +36,20 @@ unbind %
|
||||
# Reload the tmux configuration file with 'r'
|
||||
bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf
|
||||
|
||||
### Clipboard Integration
|
||||
# Enable clipboard
|
||||
set -s set-clipboard on
|
||||
set -ag terminal-overrides ",*:Ms=\\E]52;c;%p2%s\\7"
|
||||
|
||||
# Vi-style copy mode
|
||||
setw -g mode-keys vi
|
||||
|
||||
# Copy mode key bindings
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "$XDG_CONFIG_HOME/tmux/yank.sh"
|
||||
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "$XDG_CONFIG_HOME/tmux/yank.sh"
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "$XDG_CONFIG_HOME/tmux/yank.sh"
|
||||
|
||||
### Status and Window Configuration
|
||||
# Set the status bar update interval to 1 second
|
||||
set -g status-interval 1
|
||||
|
||||
Reference in New Issue
Block a user