[ale] Setting a $PS1?

Robert L. Harris nomad at rnd-consulting.com
Fri Dec 3 22:54:22 EST 1999


Ok,
  I'm running ksh and my PS1="{$?}:`hostname -s`:\$PWD>"  which I'm
pretty happy with.  The problem is that sometimes the $PWD portion
gets a bit long.  I tried changing it from:

export PS1="{$?}:`hostname -s`:\$PWD>"  
to 
export PS1="{$?}:`hostname -s`: `basename \$PWD`>"  

which looked good, except when I change directories, it didn't update
the prompt any more.  Anyone know what I'm missing?

Robert

---------------------------------------------------------------------------
Robert L. Harris                |   "A person is smart;
Senior System Engineer          |        People are dumb, panicky
  R&D Consulting.               \_            dangerous animals"  - Agent K  


http://www.rnd-consulting.com/~nomad

DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.

FYI:
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'






More information about the Ale mailing list