Use full commands in window titles again, but escape %
This commit is contained in:
parent
87c935ffe5
commit
defffb7391
3
.zshrc
3
.zshrc
@ -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…
Reference in New Issue
Block a user