summaryrefslogtreecommitdiff
path: root/etc/functions/chpwd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/chpwd')
-rw-r--r--etc/functions/chpwd10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/functions/chpwd b/etc/functions/chpwd
new file mode 100644
index 0000000..8cfd926
--- /dev/null
+++ b/etc/functions/chpwd
@@ -0,0 +1,10 @@
+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
+}