fix (zshrc): use a definition of PS1 that allow to be recognized while scrolling through a wall of text

This commit is contained in:
eeemsi 2023-08-31 21:44:16 +02:00
parent 5bf2f19f2b
commit cbbfc67661
1 changed files with 2 additions and 2 deletions

4
zshrc
View File

@ -93,9 +93,9 @@ precmd() {
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
if [[ -z ${vcs_info_msg_0_} ]]; then
PS1='%B%F{green}%(3~|…/%2~|%~)%f %%%b '
PS1='%B%K{white}%F{black}%(3~|…/%2~|%~)%k%f %%%b '
else
PS1='%B%F{green}%(3~|…/%2~|%~)%f %F{cyan}${vcs_info_msg_0_}%f %%%b '
PS1='%B%K{white}%F{black}%(3~|…/%2~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b '
fi
}