aboutsummaryrefslogtreecommitdiff
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
parent229b941b07317a44d5e63a518da24e20682f5d32 (diff)
downloaddotfiles-517ea8e2a33d4b991cea66e76b860bf94979bc78.tar.gz
dotfiles-517ea8e2a33d4b991cea66e76b860bf94979bc78.zip
Break up long printf lines
-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