From d86950e1013e5b35974238354da53bce481ec386 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 17 Sep 2008 18:55:44 +0200 Subject: Use rtab within the prompt --- etc/function | 2 +- etc/functions/rtab | 2 -- etc/options | 3 +++ 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 ## 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\\%}' -- cgit v1.2.3