From 8896ac675b5bf513074d7552da7d9f4cf8d16217 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 28 Jun 2008 10:08:14 +0200 Subject: now use autoloading for functions --- etc/functions/chpwd | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'etc/functions/chpwd') diff --git a/etc/functions/chpwd b/etc/functions/chpwd index 8cfd926..fd8feba 100644 --- a/etc/functions/chpwd +++ b/etc/functions/chpwd @@ -1,10 +1,8 @@ -chpwd () { - pstags='' - [ -f .todo ] && pstags+='todo ' - [ -f .fehindex.jpg ] && pstags+='feh ' - [ -d .hg ] && pstags+='hg ' - [ -d .git ] && pstags+='git ' - [ -d .svn ] && pstags+='svn ' - [ -f Makefile -o -f makefile ] && pstags+='make ' - source $ZDIR/prompt -} +pstags='' +[ -f .todo ] && pstags+='todo ' +[ -f .fehindex.jpg ] && pstags+='feh ' +[ -d .hg ] && pstags+='hg ' +[ -d .git ] && pstags+='git ' +[ -d .svn ] && pstags+='svn ' +[ -f Makefile -o -f makefile ] && pstags+='make ' +source $ZDIR/prompt -- cgit v1.2.3