summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-21 23:13:32 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-21 23:13:32 +0200
commit37d2bc6ad47ebc7d597909980659ed20b6074cb0 (patch)
treeb92695e68d8a4f63aa0c3c5e6f1bdb3f0501d73d
parentc9e9b2b66cb3355488187c54519c67ec5545c1a0 (diff)
etc/functions/chpwd: Use zsh-builtin test
-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 '