Skip to content

Instantly share code, notes, and snippets.

@kkirsche
Created February 28, 2017 22:20
Show Gist options
  • Select an option

  • Save kkirsche/734ec5d62773a5b1efb9c04e90469ece to your computer and use it in GitHub Desktop.

Select an option

Save kkirsche/734ec5d62773a5b1efb9c04e90469ece to your computer and use it in GitHub Desktop.
Shell Prompt Coloring
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