From 52888f5ed8322562ff4ce1d4c4da14c98b2425cd Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Thu, 29 Jun 2023 23:04:04 +0200 Subject: Fix zsh host completion colouring --- tw/home/files/zshrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tw/home/files/zshrc') diff --git a/tw/home/files/zshrc b/tw/home/files/zshrc index 72fc7540..1e8afcaa 100644 --- a/tw/home/files/zshrc +++ b/tw/home/files/zshrc @@ -43,12 +43,13 @@ setopt appendhistory sharehistory incappendhistory extendedhistory histverify hi zstyle ':completion:*' rehash true # enable completion list colours -# http://linuxshellaccount.blogspot.com/2008/12/color-completion-using-zsh-modules-on.html -zstyle ':completion:*:*:*:*:hosts' list-colors "=*=${fg[blue]}" -zstyle ':completion:*:*:*:*:users' list-colors "=*=${fg[green]}=${fg[red]}" +# https://linuxshellaccount.blogspot.com/2008/12/color-completion-using-zsh-modules-on.html +# This needs $color[C], not $fg[C]; i.e. only the colour number, not the full escape sequence. +zstyle ':completion:*:*:*:*:hosts' list-colors "=*=${color[blue]}" +zstyle ':completion:*:*:*:*:users' list-colors "=*=${color[green]}=${color[red]}" # formatting and messages -# http://www.masterzen.fr/2009/04/19/in-love-with-zsh-part-one/ +# https://www.masterzen.fr/2009/04/19/in-love-with-zsh-part-one/ zstyle ':completion:*' verbose yes zstyle ':completion:*:descriptions' format "${fg[green]}%B--- %d%b" zstyle ':completion:*:messages' format '%d' -- cgit v1.2.3