zsh git completion提供了与当前前缀不同的参数
在zsh中键入zsh git completion提供了与当前前缀不同的参数,git,zsh,zsh-completion,Git,Zsh,Zsh Completion,在zsh中键入 % git diff --ca<hit TAB> 因此,存在完全脱离当前类型前缀的补全。我怎样才能修好它 我的完成配置是: autoload -Uz compinit compinit unsetopt AUTO_MENU MENU_COMPLETE COMPLETE_IN_WORD zstyle ':completion:*' completer _complete zstyle ':completion:*' group-name '' zstyle ':c
% git diff --ca<hit TAB>
因此,存在完全脱离当前类型前缀的补全。我怎样才能修好它
我的完成配置是:
autoload -Uz compinit
compinit
unsetopt AUTO_MENU MENU_COMPLETE COMPLETE_IN_WORD
zstyle ':completion:*' completer _complete
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose false
我在我的配置中也看到了这一点,但我也不知道为什么。
autoload -Uz compinit
compinit
unsetopt AUTO_MENU MENU_COMPLETE COMPLETE_IN_WORD
zstyle ':completion:*' completer _complete
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose false