質問

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!

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top