Make your linux prompt more colorful

March 8, 2009 - Views: 494
Category: Linux Basics

Changing the color of your linux prompt is a quite easy thing. Different prompt colors may be useful to distinguish different machines more easy, or just for fun.


export PS1='\e[0;32m\u\e[0;32m@\h:\e[0;0m\w\e[0;0m$\e[0m '

Just put the lines above in your /etc/profile and in the ~/.bashrc
console

The color codecs are:

GRAY="\[\033[1;30m\]"
LIGHT_GRAY="\[\033[0;37m\]"
CYAN="\[\033[0;36m\]"
LIGHT_CYAN="\[\033[1;36m\]"
NO_COLOUR="\[\033[0m\]"
BLUE="\[\033[0;34m\]"
LIGHT_BLUE="\[\033[1;34m\]"
RED="\[\033[0;31m\]"
LIGHT_RED="\[\033[1;31m\]"
GREEN="\[\033[0;32m\]"
LIGHT_GREEN="\[\033[1;32m\]"
PURPLE="\[\033[0;35m\]"
LIGHT_PURPLE="\[\033[1;35m\]"
BROWN="\[\033[0;33m\]"
YELLOW="\[\033[1;33m\]"
BLACK="\[\033[0;30m\]"
WHITE="\[\033[1;37m\]"

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MisterWong
  • Yigg
  • Technorati
  • Blogosphere News
  • LinkArena
  • Webnews.de

Tags:

Related Posts:

Leave a Reply

Home | Imprint | Impressum | Archiv
© 2009 M.Sc. Dipl.Inf. Michael Kolb. Powered by Wordpress. HTML CSS
my technorati | my blogcatalog