diff options
Diffstat (limited to '')
| -rw-r--r-- | .config/zsh/completion.zsh | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/.config/zsh/completion.zsh b/.config/zsh/completion.zsh index ed57020..9661ecc 100644 --- a/.config/zsh/completion.zsh +++ b/.config/zsh/completion.zsh @@ -60,7 +60,7 @@ zstyle ':completion:*:cd:*' ignore-parents parent pwd setopt auto_cd ### Complete from middle of filename -zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*' +setopt complete_in_word ### auto rehash zstyle ':completion:*' rehash true @@ -70,19 +70,4 @@ zstyle ':completion:*' menu select list-colors ${(s.:.)LS_COLORS} ### completion and prompt init autoload -Uz compinit colors vcs_info -fpath+=(~/.zfunc $fpath) -fpath+=(~/.config/zsh/completion $fpath) compinit -__pip() {{ - compadd $( COMP_WORDS="$words[*]" \ - COMP_CWORD=$((CURRENT-1)) \ - PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null ) - }} -if [[ $zsh_eval_context[-1] == loadautofunc ]]; then - # autoload from fpath, call function directly - __pip "$@" -else - # eval/source/. command, register function for later - compdef __pip -P pip - compdef __pip -P pip3 -fi |
