News for hackers. Stuff that matters.
Re:Everything useful I know about kubectl by dim0r on Tuesday July 06, 2021 @12:03PM (#27750328)
Every member of our ops team has the following PS1 var in .bashrc to prevent such accidents:

  PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]\[\033[01;33m\] [`kubectl config current-context| rev | cut -d_ -f1 | rev`] \[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] $ '

There are no comments on this comment yet.