Created
February 28, 2017 22:20
-
-
Save kkirsche/734ec5d62773a5b1efb9c04e90469ece to your computer and use it in GitHub Desktop.
Shell Prompt Coloring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Red Prompt — Production | |
| STARTCOLOR="\e[0;31m" | |
| ENDCOLOR="\e[0;0m" | |
| PS1="\[$STARTCOLOR\][\u@\h \W]\\$ \[$ENDCOLOR\]" | |
| Yellow Prompt — Staging | |
| STARTCOLOR="\e[0;33m" | |
| ENDCOLOR="\e[0;0m" | |
| PS1="\[$STARTCOLOR\][\u@\h \W]\\$ \[$ENDCOLOR\]" | |
| Cyan Prompt — Development | |
| STARTCOLOR="\e[0;36m" | |
| ENDCOLOR="\e[0;0m" | |
| PS1="\[$STARTCOLOR\][\u@\h \W]\\$ \[$ENDCOLOR\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment