summaryrefslogtreecommitdiff
path: root/etc/functions/chpwd
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-25 19:09:11 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-25 19:09:11 +0200
commit5e3318cb55058880f21495ce7bce65434d23abd4 (patch)
tree2ecf5c01786ca461a9f70afc3ca586acf4e80d46 /etc/functions/chpwd
parent6f9314220c737ea91fd728c35f0a75b500ad1889 (diff)
chpwd: Added comments
Diffstat (limited to 'etc/functions/chpwd')
-rw-r--r--etc/functions/chpwd4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/functions/chpwd b/etc/functions/chpwd
index bf8b4d9..11510b4 100644
--- a/etc/functions/chpwd
+++ b/etc/functions/chpwd
@@ -1,4 +1,6 @@
## vim:ft=zsh
-psvar[1]=$(dirinfo)
+## This all belongs into the prompt, but since it only changes
+## when changing directories, it's more efficient to do it here
+psvar[1]=$(dirinfo)
psvar[2]=$(rtab -f)