summaryrefslogtreecommitdiff
path: root/vcs
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2015-02-01 23:03:05 +0200
committerTslil Clingman <hiato1@gmail.com>2015-02-01 23:03:05 +0200
commitce6884394a82f6b377ec1d659ce59be92fdf5f7c (patch)
treec07aaf8d6571b145407c24d7b96d394a75d45dc2 /vcs
parent2a30d923196c135f5d02e56e3e840d2d1fb3140e (diff)
Changed to /usr/bin/env and added non-zsh modde to vcs
Diffstat (limited to 'vcs')
-rwxr-xr-xvcs20
1 files changed, 16 insertions, 4 deletions
diff --git a/vcs b/vcs
index cf72f04..bc0fb84 100755
--- a/vcs
+++ b/vcs
@@ -10,9 +10,21 @@ VCS_NEW=""
VCS_MOD=""
VCS_REC=""
-nstr=" %F{red}●%f"
-mstr=" %F{11}●%f"
-rstr=" %F{28}●%f"
+if [[ $1 == "--zsh-colour" ]]; then
+ nstr=" %F{red}●%f"
+ mstr=" %F{11}●%f"
+ rstr=" %F{28}●%f"
+ cFST="%F{green}"
+ cSND="%F{blue}"
+ cEND="%f"
+else
+ nstr="✪"
+ mstr="±"
+ rstr="↑"
+ cFST=""
+ cSND=""
+ cEND=""
+fi
if [[ -d ".git" || -d "../.git" || -d "../../.git" ]]; then
outp=$(git status)
@@ -44,4 +56,4 @@ else if [[ -d "_darcs" || -d "../_darcs" || -d "../../_darcs" ]]; then
[[ $? = 0 ]] || VCS_REC=$rstr
fi; fi;
-[[ ! "$VCS_STR" = "" ]] && echo "%F{green}$VCS_STR%f{%F{blue}$VCS_INF%f$VCS_REC$VCS_MOD$VCS_NEW}"
+[[ ! "$VCS_STR" = "" ]] && echo "$cFST$VCS_STR$cEND{$cSND$VCS_INF$cEND $VCS_NEW$VCS_MOD$VCS_REC}"