mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-17 21:30:07 +00:00
Little VCS segment cleanup.
This commit is contained in:
parent
0cb1c0ffda
commit
7ed0abebd6
1 changed files with 2 additions and 4 deletions
|
@ -724,12 +724,10 @@ prompt_vcs() {
|
|||
|
||||
if [[ -n "$vcs_prompt" ]]; then
|
||||
if [[ "$VCS_WORKDIR_DIRTY" == true ]]; then
|
||||
"$1_prompt_segment" "$0_MODIFIED" "$2" "yellow" "$DEFAULT_COLOR"
|
||||
"$1_prompt_segment" "$0_MODIFIED" "$2" "yellow" "$DEFAULT_COLOR" "$vcs_prompt"
|
||||
else
|
||||
"$1_prompt_segment" "$0" "$2" "green" "$DEFAULT_COLOR"
|
||||
"$1_prompt_segment" "$0" "$2" "green" "$DEFAULT_COLOR" "$vcs_prompt"
|
||||
fi
|
||||
|
||||
echo -n "$vcs_prompt "
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue