163
submitted 1 day ago* (last edited 1 day ago) by bleistift2@sopuli.xyz to c/programmer_humor@programming.dev

[Meme transcription:]

– Hey, why is the shell prompt on the production server red now?
– Earlier: me@prod:~$ docker container remove --force the-application

Protip: If you’re used to shutting down your computer via the CLI, make it a habit to use an alias like off.

This way you will never, ever turn off a remote server by accidentally using throwing poweroff at a residual SSH connection.

you are viewing a single comment's thread
view the rest of the comments
[-] bleistift2@sopuli.xyz 21 points 1 day ago* (last edited 1 day ago)

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.

[-] fidgeting9658 8 points 18 hours ago

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.

[-] 30p87@feddit.org 11 points 1 day ago* (last edited 1 day ago)

Oh, so we're Winkelschleifern prompts now?

As normal user, the username is also green, and the # is a $

[-] Username@feddit.org 5 points 1 day ago* (last edited 1 day ago)

Zangendeutsch leckt oder Autokorrektur?

[-] 30p87@feddit.org 2 points 1 day ago

Zangendeutsch war zu verlockend.

[-] bleistift2@sopuli.xyz 2 points 1 day ago

Zangendeutsch ist zu hoch für mich.

this post was submitted on 09 Jan 2025
163 points (99.4% liked)

Programmer Humor

19918 readers
1773 users here now

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

founded 2 years ago
MODERATORS