fixed tmux yank

This commit is contained in:
2024-03-05 16:32:34 +01:00
parent 7b59554e7c
commit eb1937c691
2 changed files with 4 additions and 67 deletions
+4 -1
View File
@@ -19,6 +19,8 @@ setw -g pane-base-index 1
# Enable mouse support
set -g mouse on
set-option -g status-position bottom
# ================================================
# === Copy mode, scroll and clipboard ===
# ================================================
@@ -65,7 +67,7 @@ bind -n M-Down select-pane -D
if -b "command -v reattach-to-user-namespace > /dev/null 2>&1" \
"run 'tmux set -g default-command \"exec $(tmux show -gv default-shell) 2>/dev/null & reattach-to-user-namespace -l $(tmux show -gv default-shell)\"'"
yank="~/.tmux/yank.sh"
#yank="~/.tmux/yank.sh"
# Copy selected text
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "$yank"
@@ -92,6 +94,7 @@ bind -T copy-mode-vi MouseDown1Pane select-pane \;\
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'