summaryrefslogtreecommitdiff
path: root/etc/functions/chpwd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/chpwd')
-rw-r--r--etc/functions/chpwd13
1 files changed, 7 insertions, 6 deletions
diff --git a/etc/functions/chpwd b/etc/functions/chpwd
index 463e771..a375f04 100644
--- a/etc/functions/chpwd
+++ b/etc/functions/chpwd
@@ -1,7 +1,8 @@
+## vim:set ft=zsh
psvar[1]=''
-[ -f .todo ] && psvar[1]+='todo '
-[ -f .fehindex.jpg ] && psvar[1]+='feh '
-[ -d .hg ] && psvar[1]+='hg '
-[ -d .git ] && psvar[1]+='git '
-[ -d .svn ] && psvar[1]+='svn '
-[ -f Makefile -o -f makefile ] && psvar[1]+='make '
+[[ -f .todo ]] && psvar[1]+='todo '
+[[ -f .fehindex.jpg ]] && psvar[1]+='feh '
+[[ -d .hg ]] && psvar[1]+='hg '
+[[ -d .git ]] && psvar[1]+='git '
+[[ -d .svn ]] && psvar[1]+='svn '
+[[ -f Makefile || -f makefile ]] && psvar[1]+='make '