Created
September 6, 2013 14:53
-
-
Save clayball/6464921 to your computer and use it in GitHub Desktop.
Doing a little Gist test here..
A colorful Bash shell. (add to or source from .bash_profile)
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
| # .bash_color | |
| # For those people who want to add a little color to their life in Linux | |
| # We also update the Linux prompt, PS1. | |
| # | |
| # Text colors.. no background color. Feel free to experiment! | |
| # | |
| # For more information: | |
| # | |
| # Bash colors: | |
| # http://tldp.org/LDP/abs/html/colorizing.html | |
| # | |
| # Prompt escape sequences | |
| # http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html | |
| black='\e[30m' | |
| red='\e[31m' | |
| green='\e[32m' | |
| yellow='\e[33m' | |
| blue='\e[34m' | |
| magenta='\e[35m' | |
| cyan='\e[36m' | |
| white='\e[37m' | |
| PS1="\[$cyan\]\u\[$blue\]@\[$green\]\h\n\[\e[0m\]\w# " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment