macOS eterm-color bash 155 views

A shell function that appends itself to BASH’s $PROMPT_COMMAND that will print out a warning when changing to a directory matching a production regex, but not non-production. Also can be forced by having a .warn file in the directory.