Re:Times I've Messed Up as a Developer
by mfontani on Tuesday October 10, 2017 @01:12PM
(#15443499)
To prevent this, my iTerm2 has a custom background enabled when logged in on any production servers.
I wish the same were easily possible on a Linux terminal without much "trickery" :|
[ Parent
| on HN ]
Whats wrong with just setting PS1 to indicate that its a production server, and using a decent host naming scheme that properly indicates the function of the machine you're logged into? I mean this is what I do for my Linux machines, and I haven't deleted a Linux production machine in decades ..
Re:Times I've Messed Up as a Developer
by foobarchu on Wednesday October 11, 2017 @12:24AM
(#15447264)
Maybe this is an obvious question but...how do you do that if you ssh into your remote machines through a bastion that normalizes everyone to the same end user? I'm unable to set a custom .bashrc on the remote server, because its a shared user, so how would you change the ps1 on the remote box?