From: pjlahaie@gurtheru.ocunix.on.ca (Paul JY Lahaie) Subject: Re: annoying bash quirk Date: Mon, 31 May 1993 02:23:07 GMT
In article <C7u9qA.K0@madhouse.demon.co.uk> andy@madhouse.demon.co.uk (Andrew Bray) writes:
>I changed my prompt to evaluate hostname once, when the profile is
>run (I assume your hostname will not change between boots), and I replaced
>the call of pwd with use of bash's $PWD variable. It is all MUCH faster
>now.
Try using the bash built-ins. \h for hostname, \w for cwd and \$ for
$ or # depending on wether you are uid 0 or not.
- Paul