From 91ad4eda8703dcbc07c6585c2a075ad19dae4cf7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 7 Nov 2021 11:26:27 +0900 Subject: .zshrc: exclude the current dir from completion list when typing "../" --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-70-g09d2