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"