[Sussex] bash prompts
Steve Dobson
steve.dobson at syscall.org.uk
Tue Jul 28 17:33:24 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi John
John Crowhurst wrote:
> 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.
>
But it take up a lot of room.
I use a very simple one "\u@\h $ "
It tells me what user I am and which machine I'm on. As I tend use use
machines with different names I don't need to be told the domain. And
if I want to know the path its only a pwd(1) command away. I found that
a short prompt the best.
Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFKbzZXu7HOw0Q66oERAoBaAKCgvahdcJHoKynXBHQYxCqMuTNolwCfbntZ
aFx6teaNKUQ+j7e8SQPNyQk=
=13Ob
-----END PGP SIGNATURE-----
More information about the Sussex
mailing list