tmux: Replace $HOME with ~in pane titles
This commit is contained in:
parent
67832c2ac9
commit
fe07298506
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user