diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-16 13:51:15 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-16 13:51:15 +0100 |
commit | 6b3360f2a00b55043d2dba574223c6ba77e76580 (patch) | |
tree | d05432fe242ddc4db77d1c09db5fc11a9441e4c4 | |
parent | 51b15bb282dd3c4fc789e2de913ffd561c5debcd (diff) | |
download | git-sonar-6b3360f2a00b55043d2dba574223c6ba77e76580.tar.gz git-sonar-6b3360f2a00b55043d2dba574223c6ba77e76580.zip |
Include stash indicator in default prompt
-rwxr-xr-x | radar-base.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/radar-base.sh b/radar-base.sh index 168acf6..f3b0d49 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -41,7 +41,7 @@ prepare_bash_colors() { COLOR_BRANCH="\x01${GIT_RADAR_COLOR_BRANCH:-"\\033[0m"}\x02" MASTER_SYMBOL="${GIT_RADAR_MASTER_SYMBOL:-"\\x01\\033[0m\\x02\\xF0\\x9D\\x98\\xAE\\x01\\033[0m\\x02"}" - PROMPT_FORMAT="${GIT_RADAR_FORMAT:-" \\x01\\033[1;30m\\x02git:(\\x01\\033[0m\\x02%{remote: }%{branch}%{ :local}\\x01\\033[1;30m\\x02)\\x01\\033[0m\\x02%{ :changes}"}" + PROMPT_FORMAT="${GIT_RADAR_FORMAT:-" \\x01\\033[1;30m\\x02git:(\\x01\\033[0m\\x02%{remote: }%{branch}%{ :local}\\x01\\033[1;30m\\x02)\\x01\\033[0m\\x02%{ :stash}%{ :changes}"}" RESET_COLOR_LOCAL="\x01${GIT_RADAR_COLOR_LOCAL_RESET:-"\\033[0m"}\x02" RESET_COLOR_REMOTE="\x01${GIT_RADAR_COLOR_REMOTE_RESET:-"\\033[0m"}\x02" @@ -81,7 +81,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%}%{ :stash}%{ :changes}"}" RESET_COLOR_LOCAL="%{${GIT_RADAR_COLOR_LOCAL_RESET:-$reset_color}%}" RESET_COLOR_REMOTE="%{${GIT_RADAR_COLOR_REMOTE_RESET:-$reset_color}%}" |