From 6867dcb796b5c07797dbb2db4d2a977e2884d874 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 3 Jan 2023 08:43:05 +0100 Subject: [PATCH] Adjust zsh completion Accordingly to https://thevaluable.dev/zsh-completion-guide-examples/ --- home/files/zshrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/home/files/zshrc b/home/files/zshrc index 3f4b885..b732248 100644 --- a/home/files/zshrc +++ b/home/files/zshrc @@ -1,5 +1,5 @@ autoload -U colors && colors -autoload -U promptinit +autoload -U promptinit; compinit autoload -U complist # Set vim mode @@ -54,11 +54,15 @@ setopt list_types setopt PROMPT_SUBST PROMPT=$'%{$fg[blue]%}%1~ > %{$reset_color%}' -zstyle ':completion:*:descriptions' format '%U%B%d%b%u' -zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' +zstyle ':completion:*:descriptions' format '%F{blue}-- %d --%f' +zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f' +zstyle ':completion:*:warnings' format '%F{yellow} -- Sorry no matches -- %d%b%f' +zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- %d (errors: %e) -!%f' zstyle ':completion:*' menu select zstyle ':completion:*' use-cache on -zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS} +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} + +zstyle ':completion:*' completer _extensions _complete _approximate zstyle ':completion:*' group-name '' zstyle ':completion::complete:git-checkout:argument-rest:' group-order heads-local heads-remote commit-tags