Skip to content

Instantly share code, notes, and snippets.

@tr00st
Last active October 13, 2015 10:27
Show Gist options
  • Save tr00st/b412fbaa237fd7092b8e to your computer and use it in GitHub Desktop.
Save tr00st/b412fbaa237fd7092b8e to your computer and use it in GitHub Desktop.
Coloured prompt lines for BASH
# Simple colour-coded prompts for BASH usage - red=live, blue=test, green=dev
#live:
export PS1="\[$(tput bold)\]\[\033[38;5;9m\]\u@\h\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]:\w\\$\[$(tput sgr0)\] "
#test:
export PS1="\[$(tput bold)\]\[\033[38;5;39m\]\u@\h\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]:\w\\$\[$(tput sgr0)\] "
#dev:
export PS1="\[$(tput bold)\]\[\033[38;5;119m\]\u@\h\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]:\w\\$\[$(tput sgr0)\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment