News for hackers. Stuff that matters.
Re:Production is Red, Development is Blue by 1amzave on Monday January 10, 2011 @04:18PM (#2089787)
From man bash, the variable PROMPT_COMMAND:

  If set, the value is executed as a command prior to issuing each primary prompt.
e.g.:

  PROMPT_COMMAND='[[ "$PWD" =~ ^/sensitive/area ]] && PS1="be careful: " || PS1="normalprompt: "'

There are no comments on this comment yet.