diff --git a/zsh/modules/directory/init.zsh b/zsh/modules/directory/init.zsh new file mode 100644 index 0000000..4154a24 --- /dev/null +++ b/zsh/modules/directory/init.zsh @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh + +setopt AUTO_CD # Auto changes to a directory without typing cd. +setopt AUTO_PUSHD # Push the old directory onto the stack on cd. +setopt PUSHD_IGNORE_DUPS # Do not store duplicates in the stack. +setopt PUSHD_SILENT # Do not print the directory stack after pushd or popd. +setopt PUSHD_TO_HOME # Push to home directory when no argument is given. +setopt CDABLE_VARS # Change directory to a path stored in a variable. diff --git a/zsh/zplug b/zsh/zplug index ddc0033..1d443dc 100644 --- a/zsh/zplug +++ b/zsh/zplug @@ -33,6 +33,7 @@ zplug "${ZDIR}/modules/fzf/", \ from:local, \ use:"fzf.zsh", \ as:plugin + zplug "${ZDIR}/modules/fzf/", \ from:local, \ use:"fzf-tmux", \ @@ -42,6 +43,10 @@ zplug "${ZDIR}/modules/history/", \ from:local, \ as:plugin +zplug "${ZDIR}/modules/directory/", \ + from:local, \ + as:plugin + zplug "${ZDIR}/modules/complete/", \ from:local, \ as:plugin