]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Complete hashed directories
[dotfiles.git] / 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#:*:} \