Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting zsh to honor dircolors-solarized

Tags:

ls

zsh

So I'm faced up with this discrepancy between the way my ls displays colors via this:

https://github.com/seebi/dircolors-solarized

Between that, and how zsh tab autocompletion display colors. I'll make this clear with an image:

enter image description here

Cheers in advance for any insights as to how to reconcile these two realms of listing directories!

like image 894
Dmitri DB Avatar asked May 09 '14 02:05

Dmitri DB


1 Answers

list-colors is the style used by Zsh to set completion colors, it has its own funny syntax, use the following to set it to match your LS_COLORS:

# colored completion - use my LS_COLORS
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}

BTW, this line comes straight from the zsh manual, man zshall and then search for LS_COLORS.

like image 77
Francisco Avatar answered Sep 27 '22 22:09

Francisco