From 2ca1189470f69d6963fd6747281f611060e07a28 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 21 Sep 2021 21:38:54 -0700 Subject: [PATCH] trim Windows-style paths in tmux window names --- home/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/tmux.conf b/home/tmux.conf index 97c5ee1..f92cdbd 100644 --- a/home/tmux.conf +++ b/home/tmux.conf @@ -22,6 +22,10 @@ set -sg escape-time 0 set -g set-titles on set -g set-titles-string '#{host}: #{pane_title}' +# don't create absurdly long statuses with Windows-style paths +setw -g window-status-format "#I:#{s_.*\\\\|\.exe__:pane_current_command}" +setw -g window-status-current-format "#I:#{s_.*\\\\|\.exe__:pane_current_command}" + # set the default terminal to tmux instead of pretending to be screen. # NOTE: netbsd-curses requires a terminfo.cdb to be built with tmux support. # for my own convenience: