Discussion:
[Grml] Cannot find code to color by file extensions on an ls
John
2013-11-22 14:25:37 UTC
Permalink
I just opened a new bug report (http://bts.grml.org/grml/issue1286) wherein I ask to have some file extensions added to the list to color red on an `ls` but find myself clueless where exactly this "color these extensions red on an ls" resides. ?The only thing I can find in /etc/zsh/zshrc begins on line #3116 but I do not understand it. ?Can someone point me to where this list is defined? ?My request should be as easy as adding the new extensions to some array I would think.

Thanks!
Frank Terbeck
2013-11-22 14:48:14 UTC
Permalink
Post by John
I just opened a new bug report (http://bts.grml.org/grml/issue1286) wherein I
ask to have some file extensions added to the list to color red on an `ls` but
find myself clueless where exactly this "color these extensions red on an ls"
resides. ?The only thing I can find in /etc/zsh/zshrc begins on line #3116 but
I do not understand it. ?Can someone point me to where this list is defined?
?My request should be as easy as adding the new extensions to some array I
would think.
This has nothing to do with zsh.

Colouring output of ls is the job of ls. It's largely dependent on which
implementation of ls your system is using. If you're on Linux, chances
are that you're using GNU's ls implementation. We're just setting up an
alias and load GNU's default colouration scheme. To create your own, see:

% man dircolors

and add the appropriate call to ~/.zshrc.local.

Regards, Frank
John
2013-11-22 15:04:10 UTC
Permalink
Post by Frank Terbeck
Colouring output of ls is the job of ls. It's largely dependent on which
implementation of ls your system is using. If you're on Linux, chances
are that you're using GNU's ls implementation. We're just setting up an
? % man dircolors
and add the appropriate call to ~/.zshrc.local.
Ha, my face is red. ?Thank you for the tip.

Loading...