From: bsa@kf8nh.wariat.org (Brandon S. Allbery) Subject: Re: annoying bash quirk Date: Sun, 30 May 1993 18:27:08 GMT
In article <C7u9qA.K0@madhouse.demon.co.uk> andy@madhouse.demon.co.uk (Andrew Bray) writes:
>In article <wes.738732978@ashmont> wes@cs.UAlberta.CA (Wes Tutak) writes:
>>1) Does bash seem _slow_ to anyone else but me. It seems that simple commands
>>like cd or no command at all send bash off to never-never-land which takes
>>forever (ok about a second, a _long_ second :-) to get the prompt again.
>
>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.
Using \h in the PS1 string is faster yet.
PS1='`if [ $SHLVL != 1 ]; then echo ${SHLVL}@; fi`\h:\! B\$ ' export PS1
($SHLVL is my own affectation. You can omit the entire backticked part of the
line above if you wish.)
++Brandon
-- Brandon S. Allbery kf8nh@kf8nh.ampr.org bsa@kf8nh.wariat.orgIt's not too late to turn back from the "Gates" of Hell... Linux: the free 32-bit operating system, available NOW. Why waaaaaait for NT?