diff --git a/tests/tmux.bats b/tests/tmux.bats index 09e9899..14046ca 100644 --- a/tests/tmux.bats +++ b/tests/tmux.bats @@ -41,3 +41,7 @@ setup() { @test "tmux.conf pipes mouse-drag-end selection to system clipboard" { grep -qE "^bind -T copy-mode-vi MouseDragEnd1Pane .*copy-pipe-and-cancel .*xclip" "$CONFIG_FILE" } + +@test "tmux.conf enables truecolor passthrough for ghostty" { + grep -qE 'xterm-ghostty:Tc' "$CONFIG_FILE" +} diff --git a/tmux.conf b/tmux.conf index fdfcd8c..61fb4fa 100644 --- a/tmux.conf +++ b/tmux.conf @@ -8,9 +8,9 @@ set -g history-limit 50000 set -sg escape-time 10 set -g focus-events on -# True color (works in alacritty/kitty/wezterm/gnome-terminal) +# True color (works in alacritty/kitty/wezterm/gnome-terminal/ghostty) set -g default-terminal "tmux-256color" -set -ga terminal-overrides ",*256col*:Tc" +set -ga terminal-overrides ",*256col*:Tc,xterm-ghostty:Tc" # Copy mode: vi keys (matches nvim/vim) setw -g mode-keys vi