diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-26 14:28:19 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-26 14:28:19 +0100 |
commit | 1134eac7bd66d099572864b894df566ebd13585d (patch) | |
tree | 48d8c9aac5dc1712f32a8eaa3394adc5ccbacc0d /prompt.bash | |
parent | 6aeb81d26199815a1518b2aa7aabb4ed80adc3fb (diff) | |
parent | 11e8ad4bdce9979eb871635bf455213788de5e05 (diff) | |
download | git-sonar-1134eac7bd66d099572864b894df566ebd13585d.tar.gz git-sonar-1134eac7bd66d099572864b894df566ebd13585d.zip |
Merge pull request #11 from michaeldfallen/fix-bash-zero-length0.2
Bypass PS1s conversion of \[
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 4ceaf22..4821319 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;30m\]git:(\[\033[0m\]" + printf " \x01\033[1;30m\x02git:(\x01\033[0m\x02" bash_color_remote_commits - printf "\[\033[0;37m\]" + printf "\x01\033[0;37m\x02" readable_branch_name - printf "\[\033[0m\]" + printf "\x01\033[0m\x02" bash_color_local_commits - printf "\[\033[1;30m\])\[\033[0m\]" + printf "\x01\033[1;30m\x02)\x01\033[0m\x02" bash_color_changes_status fi |