Created
September 5, 2011 14:09
-
-
Save TonnyXu/1195077 to your computer and use it in GitHub Desktop.
Colorful Bash Shell Prompt
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
# NOTE: all the color mark must be surrounded with \[\] to avoid a wrong line wrapping calculation. | |
export PS1="\[\e[35;40m\]\u\[\e[0m\]@\[\e[36;40m\]\h\[\e[0m\]:\[\e[37;40m\]\W\[\e[0m\] \t \[\e[36;40m\](\j) <\!>\[\e[0m\]\n\[\e[35;40m\]\$\[\e[0m\] " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment