|
|
|
|
|
by throwaway8941
2327 days ago
|
|
For tmux users: put something like this in your .tmux.conf on production servers: set -g window-style 'fg=red,bg=black'
It will color the text red, hopefully reminding you to be extra careful. Adjust according to your preferences.One other "defensive scripting" trick I frequently use is starting any `rm` command with `ls`, double checking its output (or triple checking if it's a recursive one), and then replacing `ls` with `rm`. It barely takes any extra time if you're proficient with emacs-style readline hotkeys: C-a M-d rm C-m
|
|
I do the tmux color trick too-- color coded by environment for each bastion.