Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created September 5, 2011 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonnyXu/1195077 to your computer and use it in GitHub Desktop.
Save TonnyXu/1195077 to your computer and use it in GitHub Desktop.
Colorful Bash Shell Prompt
# 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