chore: use modern color

Signed-off-by: Li Tang <iamtangli42@gmail.com>
This commit is contained in:
2026-04-20 17:57:12 +08:00
parent 03797e737a
commit fc2874a1a1
2 changed files with 8 additions and 2 deletions

View File

@@ -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

4
.zshrc
View File

@@ -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