summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-09-17 14:21:38 +0100
committerMichael Allen <michael@michaelallen.io>2015-09-17 14:21:38 +0100
commit1d713f471fd77a49bc783ba0b313ebce9de223a5 (patch)
treecd916471a67feb3b990f01dec6812ce764248231
parenteabe1d7e855817714a9e06b59ff468951413f6c6 (diff)
downloadgit-sonar-1d713f471fd77a49bc783ba0b313ebce9de223a5.tar.gz
git-sonar-1d713f471fd77a49bc783ba0b313ebce9de223a5.zip
Surround non-printing chars in %{ and %}
-rwxr-xr-xradar-base.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/radar-base.sh b/radar-base.sh
index 054acb7..f907a0b 100755
--- a/radar-base.sh
+++ b/radar-base.sh
@@ -67,7 +67,7 @@ prepare_zsh_colors() {
COLOR_BRANCH="%{${GIT_RADAR_COLOR_BRANCH:-$reset_color}%}"
MASTER_SYMBOL="${GIT_RADAR_MASTER_SYMBOL:-"%{$reset_color%}$italic_m%{$reset_color%}"}"
- PROMPT_FORMAT="${GIT_RADAR_FORMAT:-" $fg_bold[grey]git:($reset_color%{remote: }%{branch}%{ :local}$fg_bold[grey])$reset_color%{ :changes}"}"
+ PROMPT_FORMAT="${GIT_RADAR_FORMAT:-" %{$fg_bold[grey]%}git:(%{$reset_color%}%{remote: }%{branch}%{ :local}%{$fg_bold[grey]%})%{$reset_color%}%{ :changes}"}"
RESET_COLOR_LOCAL="%{${GIT_RADAR_COLOR_LOCAL_RESET:-$reset_color}%}"
RESET_COLOR_REMOTE="%{${GIT_RADAR_COLOR_REMOTE_RESET:-$reset_color}%}"