From 0a471db63edcb0ba1fcfb6792e51b791de3fcb81 Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Sun, 30 Aug 2015 16:46:28 +0100 Subject: Move autoload back to prompt.zsh to make testing easier --- prompt.zsh | 2 ++ radar-base.sh | 2 -- 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]}%}" -- cgit v1.2.3