X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=zsh%2F.zshrc;fp=zsh%2F.zshrc;h=8867f6bcfa822030c7dab822f66602ab2b60674b;hp=042a44c104e01b8dd67891dd2f6f6932042c15b7;hb=efacdee6443988f168cfd67befd1987a7a87fafa;hpb=82a7b40f0c82b1bbf975b7966923b731a3c245a0 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#:*:} \