From bee69c1f4792c03989477256c3679009a3154eb0 Mon Sep 17 00:00:00 2001 From: juan Date: Tue, 14 Jun 2022 10:11:12 +0800 Subject: [PATCH] Enhancement: Zsh completion now more colorful --- .zshrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.zshrc b/.zshrc index 6fcc53b..41ed54e 100644 --- a/.zshrc +++ b/.zshrc @@ -37,28 +37,28 @@ autoload -Uz _zinit eval `dircolors` # 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:*' completions 1 zstyle ':completion:*' expand prefix suffix 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:*' group-name '' zstyle ':completion:*' ignore-parents parent pwd .. zstyle ':completion:*' insert-unambiguous true 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:*' max-errors 8 numeric zstyle ':completion:*' menu select=1 zstyle ':completion:*' original false zstyle ':completion:*' preserve-prefix '//[^/]##/' -zstyle ':completion:*' prompt 'Completing, with %e errors' -zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle ':completion:*' prompt '%F{green}Completing%f, with %F{red}%e%f errors' +zstyle ':completion:*' select-prompt %S%F{green}Scrolling%f active: current selection at %F{blue}%p%f%s zstyle ':completion:*' substitute 1 zstyle ':completion:*' use-compctl true -zstyle :compinstall filename '/home/juan/.zshrc' +zstyle :compinstall filename ~/.zshrc autoload -Uz compinit compinit