summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index 05ad770..b4d9fc6 100644
--- a/zshrc
+++ b/zshrc
@@ -194,6 +194,11 @@ compinit
compdef _ssh ssha=ssh
compdef _ssh ssh-co-dotfiles=ssh
+# make tabbing in a-r paths work:
+# mkdir -p test/test1/test2/test3 && chmod a-r test/test1
+# ls -l test/test1/test2/<tab><tab>
+zstyle ':completion:*' accept-exact-dirs true
+
insert-comment() {
BUFFER="#$BUFFER"
zle accept-line