diff --git a/.tmux.conf b/.tmux.conf index c20a73e..122e2e1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -15,6 +15,8 @@ set -g base-index 1 setw -g pane-base-index 1 # enable mouse set -g mouse on +# allow passthrough for yazi image preview and other tools that need terminal queries +set -g allow-passthrough off # set history limit set -g history-limit 10000 # reload config @@ -83,8 +85,8 @@ set -g @plugin 'tmux-plugins/tpm' # set -g @continuum-save-interval '30' # Colors -set -g default-terminal "screen-256color" -set -g terminal-overrides ',xterm-256color:Tc' +set -g default-terminal "tmux-256color" +set -g terminal-overrides ',xterm-ghostty:Tc,xterm-256color:Tc' # Dracula Color white='#f8f8f2' # Foreground diff --git a/.zshrc b/.zshrc index 15d7131..6389a7f 100644 --- a/.zshrc +++ b/.zshrc @@ -364,6 +364,9 @@ function dev() { local bl bl=$(tmux split-window -t "$left" -v -c "$cwd" -P -F "#{pane_id}") + # Only enable passthrough for yazi pane (image display); keep it off elsewhere + # to prevent Ghostty DA/XTVERSION responses leaking into other panes' stdin. + # tmux set-option -p -t "$tr" allow-passthrough on tmux send-keys -t "$left" "$tool" Enter tmux send-keys -t "$tr" "yazi" Enter tmux send-keys -t "$br" "lazygit" Enter @@ -374,6 +377,7 @@ function dev() { local br br=$(tmux split-window -t "$tr" -v -c "$cwd" -P -F "#{pane_id}") + # tmux set-option -p -t "$tr" allow-passthrough on tmux send-keys -t "$left" "$tool" Enter tmux send-keys -t "$tr" "yazi" Enter fi