summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2014-03-04 18:35:15 +0200
committerTslil Clingman <hiato1@gmail.com>2014-03-04 18:35:15 +0200
commit3af3b6622ab1c91e622197529817539fe5139f40 (patch)
treea165469cd1e9dfe39d3677ec1b3c3578f4aed721
parent44365dab5497638deb7eccb4a3266e4eeafbf26a (diff)
hmmm
-rwxr-xr-xvcs8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcs b/vcs
index e77c7e9..d68d07c 100755
--- a/vcs
+++ b/vcs
@@ -17,12 +17,12 @@ rstr=" %F{28}●%f"
if [[ -d ".git" || -d "../.git" || -d "../../.git" ]]; then
outp=$(git status)
VCS_STR="×"
- VCS_INF=$(echo $outp | head -n 1 | cut -d' ' -f 4-)
- check $outp "^# Untracked files:$"
+ VCS_INF=$(echo $outp | head -n 1 | cut -d' ' -f 3-)
+ check $outp "^Untracked files:$"
[[ $? = 0 ]] && VCS_NEW=$nstr
- check $outp "^# Changes not staged for commit:$"
+ check $outp "^Changes not staged for commit:$"
[[ $? = 0 ]] && VCS_MOD=$mstr
- check $outp "^# Changes to be committed:$"
+ check $outp "^Changes to be committed:$"
[[ $? = 0 ]] && VCS_REC=$rstr
else if [[ -d "_darcs" || -d "../_darcs" || -d "../../_darcs" ]]; then
fls=$(darcs show files)