Prompt changing on the fly

serge at imag.UUCP serge at imag.UUCP
Tue Feb 3 03:03:13 AEST 1987


In article <2935 at diku.UUCP> storm at diku.UUCP writes:
>You cannot use a shell script or a program to change the shell prompt
>dynamically, because the PS1/prompt variables are local to the shell,
>and therefore they can only be changed by the shell itself.  

avec la commande  chdir :    echo directory ?
                             read  dir
                             cd $dir && PS1=`pwd`" $ "

et l'appel de commande  :    . chdir
-- 
================================================================================
serge at imag.UUCP   or {seismo.css.gov|mcvax|inria}!imag!serge
Rouveyrol Serge,Laboratoire L.G.I,BP 68,38402 St Martin d'Heres CEDEX,FRANCE
tel 76 51 46 00 poste 5132



More information about the Comp.unix.wizards mailing list