Last active
October 13, 2015 10:27
-
-
Save tr00st/b412fbaa237fd7092b8e to your computer and use it in GitHub Desktop.
Coloured prompt lines for BASH
This file contains 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
# 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