From 6f54dea1ee26efcc27636bc618a5a49b1935ed91 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 4 Aug 2008 16:45:58 +0200 Subject: etc/prompt: Use psvar so the prompt does not need to be re-sourced --- etc/functions/chpwd | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'etc/functions/chpwd') diff --git a/etc/functions/chpwd b/etc/functions/chpwd index fd8feba..463e771 100644 --- a/etc/functions/chpwd +++ b/etc/functions/chpwd @@ -1,8 +1,7 @@ -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 +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 ' -- cgit v1.2.3