On 20/03/2025 09:05, Александр Коновалов wrote:
Good afternoon! I need some help with dircolors setup
I have a MacBook with macOS Sequoia 15.3.2
I installed coreutils through the brew and then checked everything - tried
'which gdircolors' and 'gdircolors --print-ls-colors' - it worked
perfectly. But when i continued my work i couldnt see any changes in files
colors. I just started to learn things about linux and CLI, i also asked
chatgpt whats wrong - tried everything it told me to do - but still no
colors for the files. i dont see colored png, txt, img, jpeg etc etc.

I would really appreciate your help if you have any tips for me or
documentation/vids.

dircolors outputs an LS_COLORS environment variable
that needs to be set in your shell.
I.e. you need to `eval $(gdircolors)` in one of your shell startup scripts
(like .zprofile perhaps).

Another option might be to use my wrapper script
which uses the most appropriate ls available
and sets it up to use colors.
If you put this in your path somewhere (I use $HOME/bin),
then it will setup colors for gls on each invocation.
You can at least use it as a reference on how to set colors.
https://www.pixelbeat.org/scripts/l

cheers,
Pádraig

  • dircolors help Александр Коновалов
    • Re: dircolors help Pádraig Brady

Reply via email to