From: janl@ifi.uio.no (Nicolai Langfeldt) Subject: Re: annoying bash quirk Date: Sun, 30 May 1993 18:41:29 GMT
In article <C7u9qA.K0@madhouse.demon.co.uk> andy@madhouse.demon.co.uk (Andrew Bray) writes:
>If you are using SLS, then the problem is probably that the prompt (PS1)
>runs 2 commands for every prompt issued: hostname and pwd.
Now, that's just plain STUPID! RTFM RTFM RTFM! Try
PS1='\u@\h \w \$'
\u : user
\h : hostname
\w : working directory
\$ : $ or # depending on wether you're root or not.
All kinds of neat stuff is mentioned in the bash man page.
Nicolai