Use full commands in window titles again, but escape %

master
Adam Goldsmith 2023-01-31 15:36:04 -05:00
parent 87c935ffe5
commit defffb7391
1 changed files with 2 additions and 1 deletions

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'