summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprompt.zsh2
-rwxr-xr-xradar-base.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/prompt.zsh b/prompt.zsh
index 80c6f12..e996b77 100755
--- a/prompt.zsh
+++ b/prompt.zsh
@@ -5,6 +5,8 @@ args=$@
source "$dot/radar-base.sh"
if is_repo; then
+ autoload colors && colors
+
prepare_zsh_colors
printf '%s' "%{$fg_bold[black]%} git:(%{$reset_color%}"
if show_remote_status $args; then
diff --git a/radar-base.sh b/radar-base.sh
index 700ec22..b2ecd38 100755
--- a/radar-base.sh
+++ b/radar-base.sh
@@ -25,8 +25,6 @@ prepare_bash_colors() {
}
prepare_zsh_colors() {
- autoload colors && colors
-
COLOR_REMOTE_AHEAD="%{${GIT_RADAR_COLOR_REMOTE_AHEAD:-$fg_bold[green]}%}"
COLOR_REMOTE_BEHIND="%{${GIT_RADAR_COLOR_REMOTE_BEHIND:-$fg_bold[red]}%}"
COLOR_REMOTE_DIVERGED="%{${GIT_RADAR_COLOR_REMOTE_DIVERGED:-$fg_bold[yellow]}%}"