Posted By

gtcaz on 03/20/07


Tagged

Bash prompt PS1


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

basicmagic
cwoodley
leachypeachy
nimoyjohnson
srinivasga


Nice Bash prompt


 / Published in: Bash
 

  1. # Set the prompt
  2. GREEN="\[\033[0;32m\]"
  3. GRAY="\[\033[0;37m\]"
  4. CYAN="\[\033[0;36m\]"
  5. RED="\[\033[0;31m\]"
  6. NO_COLOR="\[\033[0m\]"
  7. PS1="$GRAY[$GREEN\h$GRAY:$CYAN\w$GRAY]$ $NO_COLOR"

Report this snippet  

You need to login to post a comment.