Personalize your $PS1

My $PS1 Variable
Mine looks like this.
A very patriotic one, isn’t it? ;)

The code to make the Bash prompt looks like mine is (~/.bashrc):

case $TERM in
	xterm*|rxvt*)
		TITLEBAR='[\033]0;\u@\h:\w\007]'
		;;
	*)
		TITLEBAR=""
		;;
esac;

PS1="${TITLEBAR}\n[\033[0;0m][\033[0;32m]time: \
[\033[0m][\033[1;31m]\t[\033[0m][\033[0;0m]]-\
[[\033[0m][\033[0;32m]host: [\033[0m]\
[\033[1;31m]\h[\033[0m][\033[0;0m]]-\
[[\033[0m][\033[0;32m]user: [\033[0m][\033[1;31m]\u\
[\033[0m][\033[0;0m]]-[[\033[0m][\033[0;32m]bash: \
[\033[0m][\033[1;31m]\v[\033[0;0m]]\n\
[\033[0;0m][[\033[0;32m]cwd: [\033[0m][\033[1;31m]\w\
[\033[0m][\033[0;0m]]# "

Thanks to Bash Prompt HOWTO.

Put this post/page on your Social Bookmarking System

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • YahooMyWeb
  • Ma.gnolia
  • blogmarks
  • BlinkList
  • co.mments
  • Shadows
  • Furl
  • Digg
  • Google
  • Live
  • Reddit
  • Slashdot

2 Comments so far »

  1. Lelly wrote on April 21, 2008 @ 22:48

    A parte la STUPENDA dichiarazione d’amore, tesoro mio ti offendi se ti dico che non ho capito niente di quello che c’è scritto??? Cose troppo tecniche!
    Ti amo anche io!!! ;-)

  2. Detro wrote on April 22, 2008 @ 8:42

    Amore, cerchero’ di spiegartelo da vicino, ma dubito di riuscire a farti capire che cosa e’: sorry :(

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment: