summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-17 18:55:44 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-17 18:55:44 +0200
commitd86950e1013e5b35974238354da53bce481ec386 (patch)
treeb73e45aaa5a608e8440c7b0432a4d73350bb0b42 /etc
parent6198664a4f8025d536d2d652a70b9df924c66a1d (diff)
Use rtab within the prompt
Diffstat (limited to 'etc')
-rw-r--r--etc/function2
-rw-r--r--etc/functions/rtab2
-rw-r--r--etc/options3
-rw-r--r--etc/prompt2
4 files changed, 5 insertions, 4 deletions
diff --git a/etc/function b/etc/function
index 2c73f35..8fc9d2c 100644
--- a/etc/function
+++ b/etc/function
@@ -1,6 +1,6 @@
autoload chpwd extr plonkhost world-readable youtube-watch
autoload reload
-autoload gitd hgd
+autoload rtab
autoload xexport xsource
autoload throw catch
diff --git a/etc/functions/rtab b/etc/functions/rtab
index e699eb5..e3a0c20 100644
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -3,8 +3,6 @@
## written 2008 by Daniel Friesel <derf@derf.homelinux.org>
## https://derf.homelinux.org/~derf/dotfiles/zsh/functions/rtab
-## Needs an absolute directory path as argument
-## May not contain ~ or named directories
## CAVEAT: directory-names containing two or more consecutive spaces
## are not yet supported
diff --git a/etc/options b/etc/options
index 88f6151..49996fd 100644
--- a/etc/options
+++ b/etc/options
@@ -9,6 +9,9 @@ setopt auto_pushd pushd_ignore_dups pushd_minus pushd_silent
# enter "foobar" to cd foobar, and "derf" to cd ~derf
setopt auto_cd
+# To use rtab within the prompt
+setopt prompt_subst
+
# Try to correct typos in command names
setopt correct
diff --git a/etc/prompt b/etc/prompt
index 6e108e6..2a1f38f 100644
--- a/etc/prompt
+++ b/etc/prompt
@@ -6,7 +6,7 @@
user="${ps_yellow}%n"
at="@"
host="%m"
-dir="${ps_reset}%25>…>%1~%>>"
+dir="${ps_reset}%25>…>\$(rtab -f)%>>"
sign="%(!.${ps_red}#.${ps_green}>)${ps_reset}"
screen=$'%{\ek\e\\%}'