Fix vcs_info in prompt
This commit is contained in:
parent
067c390434
commit
8526e665b3
1 changed files with 5 additions and 1 deletions
|
@ -82,7 +82,11 @@ function set_prompt_info
|
|||
fi
|
||||
|
||||
vcs_info loquacious
|
||||
[[ -n "$vcs_info_msg_0_" ]] && PS1_REPO="on $vcs_info_msg_0_ "
|
||||
if [[ -n "$vcs_info_msg_0_" ]]; then
|
||||
PS1_REPO="on $vcs_info_msg_0_ "
|
||||
else
|
||||
PS1_REPO=""
|
||||
fi
|
||||
|
||||
PS1_LINE='%# '
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue