ac7dcdb21cfb57180c7d8007d95232ee62086997

Author
slavaGanzin <slava.ganzin@gmail.com>
Committer
slavaGanzin <slava.ganzin@gmail.com>
Date

Message

add colors

Diff

 1diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
 2index 87535b251c28568c715ee598d7f2a41d85f9f791..0bcefa9312fbcc0d20737ccb53a1b2533e5ae54f 100644
 3--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
 4+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
 5@@ -5,9 +5,9 @@ function git_fetch_on_chpwd {
 6 function git-auto-fetch {
 7   [[ ! -d .git ]] && return
 8   if [[ -f ".git/NO_AUTO_FETCH" ]]; then
 9-    rm ".git/NO_AUTO_FETCH" && echo "disabled"
10+    rm ".git/NO_AUTO_FETCH" && echo "${fg_bold[red]}disabled${reset_color}"
11   else
12-    touch ".git/NO_AUTO_FETCH" && echo "enabled"
13+    touch ".git/NO_AUTO_FETCH" && echo "${fg_bold[green]}enabled${reset_color}"
14   fi
15 }
16 chpwd_functions+=(git_fetch_on_chpwd)