summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2018-01-29 13:18:35 +0100
committerPeter Palfrader <peter@palfrader.org>2018-01-29 13:18:35 +0100
commit50aa87219ab8b165a5d775bc8afdcc56ab579aa4 (patch)
treec2ce7196da99563af446d8d8f85a3529fe84304b
parent7d658d84c44d6ce4e16c1dd06607402d5e7d2774 (diff)
make tabbing in a-r paths work
-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