[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.
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.