From fe0729850654965b5b1a5f1f19d6c87c74a003eb Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Fri, 8 Nov 2024 23:50:04 +0100 Subject: [PATCH] tmux: Replace $HOME with ~in pane titles --- .config/tmux/tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index af46ba2..c5cb891 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -44,7 +44,7 @@ set -g status-interval 1 set-option -g automatic-rename on # Set window title to the current directory if the process is zsh, otherwise show the process name with arguments -set-option -g automatic-rename-format '#{?#{==:#{pane_current_command},zsh},#{pane_current_path},#{pane_current_command}}' +set-option -g automatic-rename-format '#{?#{==:#{pane_current_command},zsh},#(echo #{pane_current_path} | sed "s|^$HOME|~|"),#{pane_current_command}}' # Set the color of the clock mode set -g clock-mode-colour "#8bd5ca"