Skip to content

Instantly share code, notes, and snippets.

@clayball
Created September 6, 2013 14:53
Show Gist options
  • Select an option

  • Save clayball/6464921 to your computer and use it in GitHub Desktop.

Select an option

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)
# .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