tmux: Replace $HOME with ~in pane titles

This commit is contained in:
Christian Baer 2024-11-08 23:50:04 +01:00
parent 67832c2ac9
commit fe07298506

View File

@ -44,7 +44,7 @@ set -g status-interval 1
set-option -g automatic-rename on 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 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 the color of the clock mode
set -g clock-mode-colour "#8bd5ca" set -g clock-mode-colour "#8bd5ca"