diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-03-25 17:05:50 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-03-25 17:05:50 +0100 |
commit | e59cc94805ebe76b0eb57de0b84e403583ebd4db (patch) | |
tree | 1af7d9c231beb9ea85f976e555ca0a0e6baec09e /themes/gentoo.zsh-theme | |
parent | c56fa996e7cb1500dca97723d525e4c97af33c75 (diff) | |
download | zsh-e59cc94805ebe76b0eb57de0b84e403583ebd4db.tar.gz zsh-e59cc94805ebe76b0eb57de0b84e403583ebd4db.tar.bz2 zsh-e59cc94805ebe76b0eb57de0b84e403583ebd4db.zip |
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
Diffstat (limited to 'themes/gentoo.zsh-theme')
-rw-r--r-- | themes/gentoo.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/gentoo.zsh-theme b/themes/gentoo.zsh-theme index ee205d248..5f2427c7a 100644 --- a/themes/gentoo.zsh-theme +++ b/themes/gentoo.zsh-theme @@ -2,7 +2,7 @@ function prompt_char { if [ $UID -eq 0 ]; then echo "#"; else echo $; fi } -PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%_$(prompt_char)%{$reset_color%} ' +PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)$(prompt_char)%{$reset_color%} ' ZSH_THEME_GIT_PROMPT_PREFIX="(" ZSH_THEME_GIT_PROMPT_SUFFIX=") " |