[Sussex] bash prompts

John Crowhurst info at johnscomputersupport.co.uk
Tue Jul 28 14:15:06 UTC 2009


Hi,

I wonder what everyone uses as a prompt, mine is (with ANSI colours
stripped out):

PS1=' -=(\u@\H)=- -=[\d $(date +%H:%M:%S)]=- \n[\w]\$ '

Which looks like this:

 -=(root at machine.domain)=-  -=[Tue Jul 28 15:07:18]=-
[path]#

Its ideal if you work on more than one machine at a time.

-- 
John Crowhurst
John's Computer Support



More information about the Sussex mailing list