Use full commands in window titles again, but escape %

master
Adam Goldsmith 4 months ago
parent 87c935ffe5
commit defffb7391

@ -19,7 +19,8 @@ SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
WORDCHARS=${WORDCHARS//[\/]}
# Set window title format
zstyle ':zim:termtitle' format '%~:${${(A)=1:-zsh}[1]}'
# Escape % in commands
zstyle ':zim:termtitle' format '%~:${${1:-zsh}//\\%/%%}'
# Set window title before running a command
zstyle ':zim:termtitle' hooks 'precmd' 'preexec'

Loading…
Cancel
Save