diff options
author | Grigory Petrov <grigory.v.p@gmail.com> | 2015-08-26 14:30:13 +0300 |
---|---|---|
committer | Grigory Petrov <grigory.v.p@gmail.com> | 2015-08-26 14:30:13 +0300 |
commit | 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc (patch) | |
tree | ea98b0ef90d2982f4fb44de448eafa3b2bb1c1ba /prompt.bash | |
parent | a93a5552ccb967cfc3b036e4adcecd78dc22ae0f (diff) | |
download | git-sonar-0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.tar.gz git-sonar-0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.zip |
bash prompt length fix: zero-length chars must be placed between \[ and \]
Diffstat (limited to 'prompt.bash')
-rwxr-xr-x | prompt.bash | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/prompt.bash b/prompt.bash index d577087..4ceaf22 100755 --- a/prompt.bash +++ b/prompt.bash @@ -4,12 +4,12 @@ dot="$(cd "$(dirname "$0")"; pwd)" source "$dot/radar-base.sh" if is_repo; then - printf " \033[1;30mgit:(\033[0m" + printf " \[\033[1;30m\]git:(\[\033[0m\]" bash_color_remote_commits - printf "\033[0;37m" + printf "\[\033[0;37m\]" readable_branch_name - printf "\033[0m" + printf "\[\033[0m\]" bash_color_local_commits - printf "\033[1;30m)\033[0m" + printf "\[\033[1;30m\])\[\033[0m\]" bash_color_changes_status fi |