Skip to content

Instantly share code, notes, and snippets.

@matagus
Created September 15, 2010 19:47
Show Gist options
  • Save matagus/581329 to your computer and use it in GitHub Desktop.
Save matagus/581329 to your computer and use it in GitHub Desktop.
cool bash prompt configuration
MYCOLOR1="\[\033[1;32m\]"
MYCOLOR2="\[\033[1;34m\]"
MYCOLOR3="\[\033[1;37m\]"
MYCOLOR4="\[\033[1;32m\]"
export PS1="$MYCOLOR1\u$MYCOLOR2|$MYCOLOR3\h $MYCOLOR2\w $MYCOLOR4> \[\033[00m\]"
esto en /root/.bashrc:
MYCOLOR1="\[\033[1;41m\]\[\033[1;37m\]"
MYCOLOR2="\[\033[1;40m\]\[\033[0;37m\]"
MYCOLOR3="\[\033[1;40m\]\[\033[0;31m\]"
MYCOLOR4="\[\033[1;40m\]\[\033[0;31m\]"
export PS1="$MYCOLOR1 \u $MYCOLOR3 \h $MYCOLOR2\w $MYCOLOR4> \[\033[00m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment