diff options
-rw-r--r-- | bash/bashrc.d/prompt.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 5907f8ed..c15c9c97 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -150,7 +150,8 @@ prompt() { # Print the status in brackets; add a git: prefix only if there # might be another VCS prompt (because PROMPT_VCS is set) - printf '(%s%s%s)' "${PROMPT_VCS:+git:}" "${branch:-unknown}" "$state" + printf '(%s%s%s)' \ + "${PROMPT_VCS:+git:}" "${branch:-unknown}" "$state" ;; # Subversion prompt function @@ -203,7 +204,8 @@ prompt() { fi # Print the state in brackets with an svn: prefix - (IFS= ; printf '(svn:%s%s)' "${branch:-unknown}" "${state[*]}") + (IFS= ; printf '(svn:%s%s)' \ + "${branch:-unknown}" "${state[*]}") ;; # VCS wrapper prompt function; print the first relevant prompt, if any |