From defffb73914f53430c27c540f2b854dedc57d045 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 31 Jan 2023 15:36:04 -0500 Subject: [PATCH] Use full commands in window titles again, but escape % --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 7b1d16a..d899656 100644 --- a/.zshrc +++ b/.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'