aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-21 15:15:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-21 15:15:56 +1200
commit517ea8e2a33d4b991cea66e76b860bf94979bc78 (patch)
tree515874bf2effae06646c319d91a41286d4da2f89 /bash/bashrc.d/prompt.bash
parentSlightly quicker git/svn detection (diff)
downloaddotfiles-517ea8e2a33d4b991cea66e76b860bf94979bc78.tar.gz
dotfiles-517ea8e2a33d4b991cea66e76b860bf94979bc78.zip
Break up long printf lines
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash6
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