[Sussex] bash prompts
Dominic Humphries
linux at oneandoneis2.org
Tue Jul 28 16:54:49 UTC 2009
I used to have a fairly-customised one, but several distro changes
later, most of them fell by the wayside. The only one I found
indispensable was to put a \n at the start of it so you get a blank line
between every command, which makes for a much more legible screen if you
run more than a couple of commands.
Dominic
John Crowhurst wrote:
> 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.
>
More information about the Sussex
mailing list