]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Complete hashed directories
authorSergey Matveev <stargrave@stargrave.org>
Fri, 23 Jul 2021 10:31:03 +0000 (13:31 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 23 Jul 2021 10:31:03 +0000 (13:31 +0300)
zsh/.zshrc

index 042a44c104e01b8dd67891dd2f6f6932042c15b7..8867f6bcfa822030c7dab822f66602ab2b60674b 100644 (file)
@@ -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#:*:} \