summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-26 14:28:19 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-26 14:28:19 +0100
commit1134eac7bd66d099572864b894df566ebd13585d (patch)
tree48d8c9aac5dc1712f32a8eaa3394adc5ccbacc0d /test
parent6aeb81d26199815a1518b2aa7aabb4ed80adc3fb (diff)
parent11e8ad4bdce9979eb871635bf455213788de5e05 (diff)
downloadgit-sonar-0.2.tar.gz
git-sonar-0.2.zip
Merge pull request #11 from michaeldfallen/fix-bash-zero-length0.2
Bypass PS1s conversion of \[
Diffstat (limited to '')
-rwxr-xr-xtest-commits.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-commits.sh b/test-commits.sh
index 0cca0e5..95addf9 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 "\x01\033[1;32m\x02↑\x01\033[0m\x02"
+ printf -v bash_both "\x01\033[1;33m\x02⇵\x01\033[0m\x02"
+ printf -v bash_down "\x01\033[1;31m\x02↓\x01\033[0m\x02"
cd_to_tmp "remote"