Chovy’s Blog

Bash Tip: Prompt Colors

Wed, January 4, 2006 — Category: Open Source

Tip: Prompt magic
I came across this via a Gentoo thread, and after reading thoroughly got some pretty cool ideas.
Color was the wierdest thing to interpret without a key to work off of. So here it is!
my prompt:
export PS1=’\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \n\[\033[00m\]\$ ‘
Which results in:

username@host ~/cwd
$

With green and blue colors.

Tip: Prompt magic

I came across this via a Gentoo thread, and after reading thoroughly got some pretty cool ideas.

Color was the wierdest thing to interpret without a key to work off of. So here it is!

my prompt:

export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \n\[\033[00m\]\$ '

Which results in:

username@host ~/cwd
$

With green and blue colors.

  • Post Bash Tip: Prompt Colors to del.icio.us
  • Post Bash Tip: Prompt Colors to digg
  • Post Bash Tip: Prompt Colors to Furl
  • Add Bash Tip: Prompt Colors to YahooMyWeb
  • Simpify!
  • Post Bash Tip: Prompt Colors to shadows
  • Post Bash Tip: Prompt Colors to Spurl
  • Post Bash Tip: Prompt Colors to BuddyMarks
  • Submit Bash Tip: Prompt Colors to Slashdot

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
Keyword Advertisers:
SEO Directory SEO Links Free Link Directory Shopping Submission Directory Gardening Tips Political Forum Search Engine Optimization Search Engine Marketing Audio Video Directory SEO Forum Web Development Blog Organic SEO Wiki Web Development Consulting

Learn more about purchasing keyword text link ads on this site.