문제

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