From c03a462177bc2ec469a0cdb06234d08f35054966 Mon Sep 17 00:00:00 2001 From: Reinaldo Colina Date: Fri, 28 Aug 2015 20:23:06 -0700 Subject: Added change for issue-17 to prompt.zsh as well --- prompt.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'prompt.zsh') diff --git a/prompt.zsh b/prompt.zsh index cb1eb91..a5ccba5 100755 --- a/prompt.zsh +++ b/prompt.zsh @@ -1,12 +1,15 @@ #! /usr/bin/env zsh dot="$(cd "$(dirname "$0")"; pwd)" +args=$@ source "$dot/radar-base.sh" if is_repo; then autoload colors && colors printf '%s' "%{$fg_bold[black]%} git:(%{$reset_color%}" - zsh_color_remote_commits + if show_remote_status $args; then + zsh_color_remote_commits + fi readable_branch_name zsh_color_local_commits printf '%s' "%{$fg_bold[black]%})%{$reset_color%}" -- cgit v1.2.3 From 0133ca499824f4d41ef9bd9a847934bd66fa32cd Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Sun, 30 Aug 2015 13:43:59 +0100 Subject: Rename reset color and move color setup --- prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prompt.zsh') diff --git a/prompt.zsh b/prompt.zsh index a5ccba5..80c6f12 100755 --- a/prompt.zsh +++ b/prompt.zsh @@ -5,7 +5,7 @@ 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 zsh_color_remote_commits -- cgit v1.2.3 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 ++ 1 file changed, 2 insertions(+) (limited to 'prompt.zsh') 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 -- cgit v1.2.3 From 3884b1fdf423f4e8655dd47bef0ccb2ebdd68c6d Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Sat, 5 Sep 2015 10:50:47 +0100 Subject: Fix colour issue for zsh --- prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prompt.zsh') diff --git a/prompt.zsh b/prompt.zsh index e996b77..5a7cb40 100755 --- a/prompt.zsh +++ b/prompt.zsh @@ -12,7 +12,7 @@ if is_repo; then if show_remote_status $args; then zsh_color_remote_commits fi - readable_branch_name + zsh_readable_branch_name zsh_color_local_commits printf '%s' "%{$fg_bold[black]%})%{$reset_color%}" zsh_color_changes_status -- cgit v1.2.3 From eb9c08b9b0e05ca2aaf958e34979f6ae58af4e61 Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Wed, 16 Sep 2015 15:25:54 +0100 Subject: switch prompt files to use new shared render functions --- prompt.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'prompt.zsh') diff --git a/prompt.zsh b/prompt.zsh index 5a7cb40..2d31820 100755 --- a/prompt.zsh +++ b/prompt.zsh @@ -10,10 +10,10 @@ if is_repo; then prepare_zsh_colors printf '%s' "%{$fg_bold[black]%} git:(%{$reset_color%}" if show_remote_status $args; then - zsh_color_remote_commits + color_remote_commits fi - zsh_readable_branch_name - zsh_color_local_commits + readable_branch_name + color_local_commits printf '%s' "%{$fg_bold[black]%})%{$reset_color%}" - zsh_color_changes_status + color_changes_status fi -- cgit v1.2.3