From 37d2bc6ad47ebc7d597909980659ed20b6074cb0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 21 Aug 2008 23:13:32 +0200 Subject: etc/functions/chpwd: Use zsh-builtin test --- etc/functions/chpwd | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'etc/functions/chpwd') 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 ' -- cgit v1.2.3