diff options
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 307c577b..4d2afc09 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -237,7 +237,12 @@ prompt() { # VCS wrapper prompt function; print the first relevant prompt, if any vcs) - prompt git || prompt svn || prompt hg + local vcs + for vcs in "${PROMPT_VCS[@]:-git}" ; do + if prompt "$vcs" ; then + return + fi + done ;; # Show return status of previous command in angle brackets, if not zero |