1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 11:51:50 +08:00

Enhancement: Zsh completion now more colorful

This commit is contained in:
juan 2022-06-14 10:11:12 +08:00
parent 2c322b6afe
commit bee69c1f47
No known key found for this signature in database
GPG Key ID: 63A51E78F28ACE53

12
.zshrc
View File

@ -37,28 +37,28 @@ autoload -Uz _zinit
eval `dircolors` eval `dircolors`
# The following lines were added by compinstall # The following lines were added by compinstall
zstyle ':completion:*' auto-description 'Specify: %F{magenta}%d%f' zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
zstyle ':completion:*' completer _oldlist _expand _complete _ignored _match _correct _approximate _prefix zstyle ':completion:*' completer _oldlist _expand _complete _ignored _match _correct _approximate _prefix
zstyle ':completion:*' completions 1 zstyle ':completion:*' completions 1
zstyle ':completion:*' expand prefix suffix zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort access zstyle ':completion:*' file-sort access
zstyle ':completion:*' format 'Completing %F{magenta}%d%f' zstyle ':completion:*' format '%F{green}Completing%f %F{yellow}%d%f'
zstyle ':completion:*' glob 1 zstyle ':completion:*' glob 1
zstyle ':completion:*' group-name '' zstyle ':completion:*' group-name ''
zstyle ':completion:*' ignore-parents parent pwd .. zstyle ':completion:*' ignore-parents parent pwd ..
zstyle ':completion:*' insert-unambiguous true zstyle ':completion:*' insert-unambiguous true
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s zstyle ':completion:*' list-prompt %S%F{green}At %p%f: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**' zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**'
zstyle ':completion:*' max-errors 8 numeric zstyle ':completion:*' max-errors 8 numeric
zstyle ':completion:*' menu select=1 zstyle ':completion:*' menu select=1
zstyle ':completion:*' original false zstyle ':completion:*' original false
zstyle ':completion:*' preserve-prefix '//[^/]##/' zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' prompt 'Completing, with %e errors' zstyle ':completion:*' prompt '%F{green}Completing%f, with %F{red}%e%f errors'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s zstyle ':completion:*' select-prompt %S%F{green}Scrolling%f active: current selection at %F{blue}%p%f%s
zstyle ':completion:*' substitute 1 zstyle ':completion:*' substitute 1
zstyle ':completion:*' use-compctl true zstyle ':completion:*' use-compctl true
zstyle :compinstall filename '/home/juan/.zshrc' zstyle :compinstall filename ~/.zshrc
autoload -Uz compinit autoload -Uz compinit
compinit compinit