aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-07 11:26:27 +0900
committernsfisis <nsfisis@gmail.com>2021-11-07 11:26:27 +0900
commit91ad4eda8703dcbc07c6585c2a075ad19dae4cf7 (patch)
treee21fdc4726a88d3f92874031e42c602fe338d6e4
parentc17f07bc3ddeb256078af8058fa7d126aa02ab7c (diff)
downloaddotfiles-91ad4eda8703dcbc07c6585c2a075ad19dae4cf7.tar.gz
dotfiles-91ad4eda8703dcbc07c6585c2a075ad19dae4cf7.tar.zst
dotfiles-91ad4eda8703dcbc07c6585c2a075ad19dae4cf7.zip
.zshrc: exclude the current dir from completion list when typing "../"
-rw-r--r--.zshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 330eada..65f2b9a 100644
--- a/.zshrc
+++ b/.zshrc
@@ -191,6 +191,9 @@ zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([%0-9]#)*=0=01;31
# Complete commands even if input starts with "sudo"
zstyle ':completion:*:sudo:*' command-path /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/X11R6/bin
+# Exclude the current directory from completion list when typing "../".
+zstyle ':completion:*' ignore-parents parent pwd ..
+
autoload -U zcalc
autoload zed