diff options
-rw-r--r-- | etc/function | 2 | ||||
-rw-r--r-- | etc/functions/rtab | 2 | ||||
-rw-r--r-- | etc/options | 3 | ||||
-rw-r--r-- | etc/prompt | 2 |
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 @@ -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\\%}' |