The upstream branch is shown

This commit is contained in:
Arialdo Martini 2013-09-02 19:15:33 +02:00
parent c397ff3c92
commit d86af5c1e9

View File

@ -80,7 +80,12 @@ function build_prompt {
then
PS1="${PS1} ${on}($current_commit_hash_abbrev)"
else
PS1="${PS1} ${on}(${current_branch})"
if [[ $has_upstream == true ]]
then
PS1="${PS1} ${on}(${current_branch} => ${upstream})"
else
PS1="${PS1} ${on}(${current_branch})"
fi
fi
fi