From 42907f3733132aef1d303d93fa1ada81319716b2 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Nov 2020 19:10:25 +0100 Subject: [PATCH] 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. --- zsh/.config/zsh/.zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 3b9938d..5ce69e3 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -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)'