Here we simply have a tool that on dangerous commands like power off or reboot asks for the host name of the machine in question. Didn’t stop me from accidentally rebooting a machine once, but no matter
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Holy shit that’s brilliant
If you’re using a descendant of Debian, you will find a line like this in your ~/.bashrc file:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
The 32m part controls the color of the username. (\u). 1 is red, 2 is green (as seen in the user and host part, \u@\h), 3 (as seen for the directory, \w) is blue.
You can use this to distinguish different hosts by color.
Oh, so we're Winkelschleifern prompts now?

As normal user, the username is also green, and the # is a $
Zangendeutsch leckt oder Autokorrektur?
Zangendeutsch war zu verlockend.
Zangendeutsch ist zu hoch für mich.
Shell colors change the game really. I did this at work; when I'm on the admin server my prompt is rainbow, other servers black (I use a solarized light terminal). It has saved me so many times.
this is honestly my worst fear as someone who suffers from ocd and compulsive checking
Man it's late here but I just don't get it. Isn't tmux enough to separate sessions then you just look before you run something like this?