Use full commands in window titles again, but escape %

This commit is contained in:
Adam Goldsmith 2023-01-31 15:36:04 -05:00
parent 87c935ffe5
commit defffb7391

3
.zshrc
View File

@ -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'