News for hackers. Stuff that matters.
Re:Fulfilling a reader's request for my “dot files” by akira2501 on Saturday May 06, 2023 @03:23AM (#35839042)
You can customize LS_COLORS if you want, but I've never been mad at the defaults. Also, I prefer c-style escapes, which allows you to copy and paste the filename and use it in other commands:

    alias ls='ls --color=auto -F -b -T 0 -A'

    -F classify entries with (*/=>@|)
    -b use c-style escapes instead of quoting
    -T 0 do not use tabs for alignment
    -A show all dotfiles except . and ..
Plus, I find colors to be insanely useful when my old eyes try to read 'ip' output, so I really do prefer:

    alias ip='ip --color=auto'
Re:Fulfilling a reader's request for my “dot files” by Flimm on Saturday May 06, 2023 @03:26AM (#35839054)
Interesting! I've been using "grc" to provide colours for commands like "ip", I didn't realise that "ip" had a "--color=auto" option.
Re:Fulfilling a reader's request for my “dot files” by tommieb on Saturday May 06, 2023 @04:11AM (#35839271)
After more than two decades - never knew ip had the --color switch, TIL and thanks! :)
Re:Fulfilling a reader's request for my “dot files” by iforgotpassword on Saturday May 06, 2023 @06:56AM (#35840116)
I really wish there were a unified environment variable to enable colors for everything instead of having a separate one for everything or having to clutter your bashrc with a trillion aliases.
Re:Fulfilling a reader's request for my “dot files” by doubled112 on Saturday May 06, 2023 @08:48AM (#35840848)
I decided to clutter the filesystem instead and have my bashrc source a bunch more files.

It helps me, at least.

Re:Fulfilling a reader's request for my “dot files” by jwilk on Saturday May 06, 2023 @10:33AM (#35841751)
Re:Fulfilling a reader's request for my “dot files” by hddqsb on Sunday May 07, 2023 @08:15AM (#35850607)
Re:Fulfilling a reader's request for my “dot files” by porbelm on Saturday May 06, 2023 @04:54PM (#35845275)
Same! Thanks

I wasn't used to ip over ifconfig until a few years ago anyway lol

Re:Fulfilling a reader's request for my “dot files” by nurettin on Saturday May 06, 2023 @04:14AM (#35839287)
If I'm going to see yet another blue on black, I'd rather have black and white forever.
Re:Fulfilling a reader's request for my “dot files” by zamnos on Saturday May 06, 2023 @04:51AM (#35839475)
What shade of blue do you have configured? The default is this impossible to read shade of dark blue, so the first thing I do is configure a different, readable shade of not-so-dark blue.
Re:Fulfilling a reader's request for my “dot files” by nurettin on Saturday May 06, 2023 @06:41AM (#35840037)
They usually just set it to #0000FF. So the first thing to do is synch bashrc.
Re:Fulfilling a reader's request for my “dot files” by pixl97 on Saturday May 06, 2023 @09:38AM (#35841246)
Ya that dark blue on black is the worst. The moment the world went past 16 colors it should have been disposed of.
Re:Fulfilling a reader's request for my “dot files” by kps on Saturday May 06, 2023 @10:21AM (#35841645)
> Ya that dark blue on black is the worst

Nah, yellow on white is the worst. Authors, please stop assuming everyone uses a dark background (and consider looking up ‘astigmatic halation’).

Re:Fulfilling a reader's request for my “dot files” by blueflow on Saturday May 06, 2023 @04:50AM (#35839472)
Which 'ip' implementation has the --color switch?
Re:Fulfilling a reader's request for my “dot files” by voxadam on Saturday May 06, 2023 @05:17AM (#35839601)
The version of 'ip' on my F38 system is part of iproute2[0][1] and includes --color.

[0]https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2...

[1]https://wiki.linuxfoundation.org/networking/iproute2

Re:Fulfilling a reader's request for my “dot files” by tlamponi on Saturday May 06, 2023 @06:26AM (#35839957)
The one from iproute2 has the --color (or shorter -c) option. That variant is installed by default on most (non-minimal) Linux Distributions.

But the one from the BusyBox suite (e.g., the default in Alpine Linux) doesn't have the color option.

Re:Fulfilling a reader's request for my “dot files” by NikkiA on Saturday May 06, 2023 @07:18AM (#35840215)
> but I've never been mad at the defaults

The default for o+w directories having a bright green background colour with grey text is kind of annoying to me, I suppose you could argue that o+w directories should be annoying so that you are aware of their existance and risk