From dec90dd1c9edc20b8ae9f15cd920db213955c10d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 4 Jul 2020 18:43:44 +0100 Subject: [PATCH] Improve display of ZSH completions --- zshrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zshrc b/zshrc index d523e7a..94846e3 100644 --- a/zshrc +++ b/zshrc @@ -65,6 +65,19 @@ zinit light zsh-users/zsh-completions zinit ice wait lucid atload"!_zsh_autosuggest_start" zinit light zsh-users/zsh-autosuggestions +# ============================================================================== +# Completion +# ============================================================================== + +# Group completions by type under group headings +zstyle ':completion:*' group-name '' +zstyle ':completion:*:descriptions' format '%B%d%b' + +# Improve selection of Makefile completions - from: +# https://github.com/zsh-users/zsh-completions/issues/541#issuecomment-384223016 +zstyle ':completion:*:make:*:targets' call-command true +zstyle ':completion:*:make:*' tag-order targets + # ============================================================================== # Private Dotfiles # ==============================================================================