zsh: Enable auto input of cd before directories

Enabled zsh option to automatically prepend directories with `cd` if
they are the only command on the line, essentially enabling you to just
write `/var/lib/docker` to go to the respective directory.
This commit is contained in:
Marty Oehme 2020-11-02 19:10:25 +01:00
parent 3ee9c95374
commit 42907f3733
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ setopt correct
unsetopt correctall
# Enable command auto-correction.
ENABLE_CORRECTION="true"
# allow moving through directories without prepending cd
setopt autocd
# Speed up autocomplete, force prefix mapping
zstyle ':completion:*' accept-exact '*(N)'