aboutsummaryrefslogtreecommitdiff
path: root/gitstatus.prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gitstatus.prompt.sh')
-rw-r--r--gitstatus.prompt.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/gitstatus.prompt.sh b/gitstatus.prompt.sh
index 9c1a2138..f27bcc39 100644
--- a/gitstatus.prompt.sh
+++ b/gitstatus.prompt.sh
@@ -33,11 +33,11 @@ function gitstatus_prompt_update() {
gitstatus_query "$@" || return 1 # error
[[ "$VCS_STATUS_RESULT" == ok-sync ]] || return 0 # not a git repo
- local reset=$'\e[0m' # no color
- local clean=$'\e[38;5;076m' # green foreground
- local untracked=$'\e[38;5;014m' # teal foreground
- local modified=$'\e[38;5;011m' # yellow foreground
- local conflicted=$'\e[38;5;196m' # red foreground
+ local reset=$'\001\e[0m\002' # no color
+ local clean=$'\001\e[38;5;076m\002' # green foreground
+ local untracked=$'\001\e[38;5;014m\002' # teal foreground
+ local modified=$'\001\e[38;5;011m\002' # yellow foreground
+ local conflicted=$'\001\e[38;5;196m\002' # red foreground
local p