Sample Header Ad - 728x90

LS_COLORS not respected on Cygwin

1 vote
1 answer
2092 views
Whilst trying to configure ls' colors on Cygwin (specifically the distro babun), I found that the custom extension colors that were in the LS_COLORS environment variable weren't being used. Here's an example: di=34:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43:*.tar=1;31 Normally, the ls command should output white text for every file EXCEPT .tar files, which should be red. However, what I'm getting is white text for everything INCLUDING .tar files. I wonder if it's a problem with MSYS ls, or if it's a problem with my shell (zsh). Basically, the custom file extension colors that I try and define fall back to the default file color. Here's the corresponding part of my .zshrc where I've defined the ls alias and run the output of dircolors. eval "dircolors /etc/DIR_COLORS" alias ls="/bin/ls --color=auto"
Asked by IllinoisJackson (11 rep)
Mar 21, 2017, 09:14 PM
Last activity: Jun 22, 2025, 03:05 PM