From 539146c2fddf5a4df146cb1f2ef876633e577dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 30 Aug 2015 20:34:39 +0200 Subject: [zsh] Add cdr --- .zsh/zshrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.zsh/zshrc b/.zsh/zshrc index 8f4f567..acf1403 100644 --- a/.zsh/zshrc +++ b/.zsh/zshrc @@ -323,7 +323,15 @@ setopt auto_continue # disown implies 'bg' ################################################# # load zmv -autoload -U zmv +autoload -Uz zmv + +# cdr +autoload -Uz chpwd_recent_dirs cdr +add-zsh-hook chpwd chpwd_recent_dirs + +zstyle ':completion:*:*:cdr:*:*' menu selection +zstyle ':chpwd:*' recent-dirs-default true +zstyle ':completion:*' recent-dirs-insert both # }}} -- cgit v1.2.3