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

View file

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