From e59cc94805ebe76b0eb57de0b84e403583ebd4db Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Mon, 25 Mar 2019 17:05:50 +0100 Subject: themes: fix prompt verbosity on window resize %_ is a prompt expansion sequence that expands to the status of the parser. This means that on window resize, the status of the execution of the window resize hook (TRAPWINCH) would be displayed while reloading the prompt line. This looked like cmdand cursh$ or then$ depending on the body of the TRAPWINCH function. Fixes #7262 --- themes/tjkirch_mod.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/tjkirch_mod.zsh-theme') diff --git a/themes/tjkirch_mod.zsh-theme b/themes/tjkirch_mod.zsh-theme index 1b206a7e1..2dd060ea1 100644 --- a/themes/tjkirch_mod.zsh-theme +++ b/themes/tjkirch_mod.zsh-theme @@ -8,6 +8,6 @@ function prompt_char { } PROMPT='%(?,,%{$fg[red]%}FAIL: $?%{$reset_color%} -)%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info) %_$(prompt_char) ' +)%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info) $(prompt_char) ' RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}' -- cgit v1.2.3-70-g09d2