diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-30 16:46:28 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-30 16:46:28 +0100 |
commit | 0a471db63edcb0ba1fcfb6792e51b791de3fcb81 (patch) | |
tree | d34eabde44bc12b7a00d7f6b7bf2a80dd0ecbab8 | |
parent | 5b5c784e6caf83652d92532f426f3f8d40836b21 (diff) | |
download | git-sonar-0a471db63edcb0ba1fcfb6792e51b791de3fcb81.tar.gz git-sonar-0a471db63edcb0ba1fcfb6792e51b791de3fcb81.zip |
Move autoload back to prompt.zsh to make testing easier
-rwxr-xr-x | prompt.zsh | 2 | ||||
-rwxr-xr-x | radar-base.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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]}%}" |