From 41f319bacd4ba833b7fa9ce37ffd0b5367dd0019 Mon Sep 17 00:00:00 2001 From: Johannes Nussbaum Date: Thu, 30 Jan 2025 10:21:45 +0100 Subject: [PATCH] fix --- README.md | 7 +++++++ docs/tutorials/01-getting-started.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 9ec6b08b..69217d19 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,13 @@ set -ag status-right "#{E:@catppuccin_status_session}" set -ag status-right "#{E:@catppuccin_status_uptime}" set -agF status-right "#{E:@catppuccin_status_battery}" +# automatically set CWD as window name +set -g @catppuccin_window_default_text "#W" +set -g @catppuccin_window_current_text "#W" +set -g @catppuccin_window_text "#W" +set-option -g automatic-rename on +set-option -g automatic-rename-format '#I #{b:pane_current_path}' + run ~/.config/tmux/plugins/tmux-plugins/tmux-cpu/cpu.tmux run ~/.config/tmux/plugins/tmux-plugins/tmux-battery/battery.tmux # Or, if using TPM, just run TPM diff --git a/docs/tutorials/01-getting-started.md b/docs/tutorials/01-getting-started.md index 78ca0781..c2b746b6 100644 --- a/docs/tutorials/01-getting-started.md +++ b/docs/tutorials/01-getting-started.md @@ -41,6 +41,13 @@ run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux set -g status-left "" set -g status-right '#[fg=#{@thm_crust},bg=#{@thm_teal}] session: #S ' +# automatically set CWD as window name +set -g @catppuccin_window_default_text "#W" +set -g @catppuccin_window_current_text "#W" +set -g @catppuccin_window_text "#W" +set-option -g automatic-rename on +set-option -g automatic-rename-format '#I #{b:pane_current_path}' + # Ensure that everything on the right side of the status line # is included. set -g status-right-length 100