From 07a74ebd0ee2c3e775f088a620f1bedea1e33403 Mon Sep 17 00:00:00 2001 From: Stein Date: Tue, 2 Jul 2024 23:30:29 -0400 Subject: [PATCH] Filter out color codes from pane title tmux uses a non-ANSI control sequence to set colors in tab names. This filters those control sequences from the right_prompt. --- functions/fish_right_prompt.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/fish_right_prompt.fish b/functions/fish_right_prompt.fish index 2440807..3d6835b 100644 --- a/functions/fish_right_prompt.fish +++ b/functions/fish_right_prompt.fish @@ -27,6 +27,7 @@ function __tmux_prompt set pane (_get_screen_window) case tmux set pane (_get_tmux_window) + set pane (string replace -ra '#\[[bf]g=[^\]]+\]' '' $pane) end set_color 666666