Added toggle for auto cd feature

pull/5/head
Aaron Johnson 7 years ago
parent 1787b595a2
commit 1e148ed75e

@ -1,6 +1,7 @@
# ZSH Configuration # ZSH Configuration
BSD_MODE=false #Some options must be specified differently in BSD BSD_MODE=false #Some options must be specified differently in BSD
SYNTAX_HIGHLIGHT=true #On-the-fly syntax highlighting of commands that you type SYNTAX_HIGHLIGHT=true #On-the-fly syntax highlighting of commands that you type
AUTO_CD=true #When true, if only a directory path is entered, you will cd to the directory
# Prompt Style # Prompt Style
PROMPT_STYLE=bsd #Valid options: bsd, bsd2, ar5 PROMPT_STYLE=bsd #Valid options: bsd, bsd2, ar5

@ -2,7 +2,10 @@ autoload -U compinit promptinit
autoload -U colors && colors autoload -U colors && colors
compinit -d ${HOME}/.cache/.zcompdump compinit -d ${HOME}/.cache/.zcompdump
promptinit promptinit
setopt autocd if [ $AUTO_CD = true ]
then
setopt autocd
fi
unsetopt beep unsetopt beep
setopt HIST_IGNORE_SPACE setopt HIST_IGNORE_SPACE
if [ $COMPLETION_STYLE = bash ] if [ $COMPLETION_STYLE = bash ]

Loading…
Cancel
Save