From 517ea8e2a33d4b991cea66e76b860bf94979bc78 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 21 Aug 2016 15:15:56 +1200 Subject: Break up long printf lines --- bash/bashrc.d/prompt.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bash/bashrc.d') 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 -- cgit v1.2.3