From: Sergey Matveev Date: Fri, 23 Jul 2021 10:31:03 +0000 (+0300) Subject: Complete hashed directories X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=efacdee6443988f168cfd67befd1987a7a87fafa Complete hashed directories --- diff --git a/zsh/.zshrc b/zsh/.zshrc index 042a44c..8867f6b 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -180,6 +180,7 @@ zstyle ":completion:*" completer _mycomp _parameters _ignored _mycomp () { [[ $CURRENT -eq 1 ]] && curcontext="${curcontext%:*:*}:-command-:" \ _command_names && return + [[ $IPREFIX =~ ~.* ]] && _tilde && return local has_files curcontext=:files:${curcontext#:*:} _files && has_files=1 [[ ${words[1]} == man ]] && curcontext=:man:${curcontext#:*:} \