Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root7975082dI’ve done this for years, and can’t recommend it enough!
With Terminator I use banners instead of background colors. Less glaring. -
typosaurus1215582dThat's not really removing background but you're using f-ing rgb in ansi? Fuck, if I knew that was possible. Thanks. Learned smth
-
TrayKnots28982d@retoor
There is a code that removes the color. But for some crazy reason, it had no effect. Therefore I just add add my terminal's default color back in.
Will be annoying the next time I change themes again, but hey, maybe that will make me figure out why the color remove code didn't work. -
TrayKnots28982d@retoor
Cannot tell you why, but I just tried it again with your code. It doesn't work. I could probably troubleshoot and figure this one out, but I guess I just accept it for now.
Note, it recognized your code as color code. Otherwise I would get a printout. I don't. But it just doesn't change the color back. -
typosaurus1215582d@TrayKnots oh, very weird. This code normally removes all visuals including bold/italic and stuff. Thanks for trying.
trap abort SIGINT cool stuff btw -
TrayKnots28980dOh, wow. My script broke git.
I cannot use the script and git at the same time... Git uses also ssh and it just calls the ssh command from the path. Hmm.. Back to the drawing board.
Related Rants
-
gururaju56*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx70This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus62Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
Just a quick follow up. I told you guys after rebooting my server by accident, I'll color in the terminals for my ssh connections.
Normal terminal in white. With the code to do it. Just a shell script with the name ssh earlier in the path than the actual ssh. That was the only solution that didn't fuck my auto-completion. compdef was somehow useless. But it is simple.
For some reason I had to hardcode the return color to white. Alacritty was not happy with just a no-color code. But whatever. Super useful. I won't accidentally restart non-host computers now.
Planning on extending this to have different colors according to the host. Like my homelab could be green. Live servers would be red. Dev servers blue. But that's for the future.
Just wanted to share my little improvement that will make my computing saver.
random
linux
accidental reboot solution
ssh