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 /test-commits.sh | |
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 '')
-rwxr-xr-x | test-commits.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-commits.sh b/test-commits.sh index 0cca0e5..fda4ae3 100755 --- a/test-commits.sh +++ b/test-commits.sh @@ -374,9 +374,9 @@ test_zsh_and_bash_local_commits() { local zsh_both="%{[yellow]%}⇵%{%}" local zsh_down="%{[red]%}↓%{%}" - printf -v bash_up "\033[1;32m↑\033[0m" - printf -v bash_both "\033[1;33m⇵\033[0m" - printf -v bash_down "\033[1;31m↓\033[0m" + printf -v bash_up "\[\033[1;32m\]↑\[\033[0m\]" + printf -v bash_both "\[\033[1;33m\]⇵\[\033[0m\]" + printf -v bash_down "\[\033[1;31m\]↓\[\033[0m\]" cd_to_tmp "remote" |