Fix vcs_info in prompt

This commit is contained in:
Eryn Wells 2013-01-03 10:01:49 -08:00
parent 067c390434
commit 8526e665b3

View file

@ -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='%# '
}