fix (zshrc): use a definition of PS1 that allow to be recognized while scrolling through a wall of text
This commit is contained in:
parent
5bf2f19f2b
commit
cbbfc67661
4
zshrc
4
zshrc
@ -93,9 +93,9 @@ precmd() {
|
|||||||
|
|
||||||
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
|
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
|
||||||
if [[ -z ${vcs_info_msg_0_} ]]; then
|
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
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user