From bbbd7974620b321df374af8bafa113abd855d220 Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Fri, 2 Apr 2021 16:40:58 -0600 Subject: [feat] Make tmux window titles their index by default --- base/tmux.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base') diff --git a/base/tmux.conf b/base/tmux.conf index 6269ccf..d06148e 100644 --- a/base/tmux.conf +++ b/base/tmux.conf @@ -25,8 +25,8 @@ set -g status-right-length 30 set -g status-style "fg=colour8,bg=colour18" set -g status-left "#(bash ~/.tmux/status-left)" set -g status-right "#[fg=colour19]#[bg=colour19,fg=colour7] %a %m.%d %R 💜" -set -g window-status-format "#W #[default,fg=colour19]" -set -g window-status-current-format "#W #[nobold,fg=colour19]" +set -g window-status-format "#{?#W,#W,#I} #[default,fg=colour19]" +set -g window-status-current-format "#{?#W,#W,#I} #[nobold,fg=colour19]" set -g window-status-current-style "fg=colour4,bold" set -g window-status-activity-style "fg=colour20" set -g window-status-bell-style "fg=colour20" @@ -82,6 +82,7 @@ bind % command-prompt -p index "select-window -t ':%%'" bind '"' splitw -hc "#{pane_current_path}" bind "'" splitw -c "#{pane_current_path}" bind Tab last # most recent window +bind-key c new-window -n "" bind -r "<" swapw -d -t -1 bind -r ">" swapw -d -t +1 -- cgit v1.2.3-70-g09d2