summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2015-08-30 20:34:39 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2015-08-30 22:03:10 +0200
commit539146c2fddf5a4df146cb1f2ef876633e577dae (patch)
treeabae342adb063d11f4ee846d94aacabbbe4ca11a
parent7ddbea632e2681fba1d430e366ca31bf048568cb (diff)
downloaddotfiles-539146c2fddf5a4df146cb1f2ef876633e577dae.tar.gz
dotfiles-539146c2fddf5a4df146cb1f2ef876633e577dae.tar.bz2
dotfiles-539146c2fddf5a4df146cb1f2ef876633e577dae.zip
[zsh] Add cdr
-rw-r--r--.zsh/zshrc10
1 files changed, 9 insertions, 1 deletions
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
# }}}