←back to thread

466 points CoolCold | 3 comments | | HN request time: 0s | source
Show context
fn-mote ◴[] No.40212557[source]
Overall, this seems great.

However...

> [...] by default it will tint your terminal background in a reddish tone while you are operating with elevated privileges

?!! ouch ... seems orthogonal to the actual important parts.

Disclaimer: I didn't try it.

replies(4): >>40212686 #>>40215695 #>>40219040 #>>40225604 #
NekkoDroid ◴[] No.40212686[source]
I tried it a bit ago (when it was still called uid0, pre-release), I also wasn't a fan of the tinting.

I like the intent behind it, but some terminals already tint the header color when running sudo, I haven't tested if its done specifically for sudo or if its in a more generic way that could handle this as well.

replies(2): >>40212858 #>>40213006 #
Karellen ◴[] No.40212858[source]
> I also wasn't a fan of the tinting.

From the linked mastodon thread:

> For example, by default it will tint your terminal background in a reddish tone while you are operating with elevated privileges. That is supposed to act as a friendly reminder that you haven't given up the privileges yet, and marks the output of all commands that ran with privileges appropriately. (If you don't like this, you can easily turn it off via the --background= switch).

(emphasis mine)

replies(3): >>40215782 #>>40215796 #>>40217102 #
deadbunny ◴[] No.40217102[source]
I for one love to type out 13 extra characters to a 4 character command to disable dumb choices by the developer.

On a more serious note, I wonder what random ASCII escape sequences we can send.

replies(2): >>40219371 #>>40221421 #
1. BenjiWiebe ◴[] No.40219371{3}[source]
'alias' is your friend.
replies(1): >>40222214 #
2. deadbunny ◴[] No.40222214[source]
I shouldn't need to alias behaviour that violates the principle of least surprise on every single machine I need to run elevated commands on.
replies(1): >>40222685 #
3. shrimp_emoji ◴[] No.40222685[source]
Eh.

`alias grep='grep --color=auto'`

`alias ls='ls --color=auto'`

It's canon.