[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] Construction d'un prompt



Ludovic Kuty wrote:

> Salut,
>
> Pour l'instant je construis mon prompt sous bash avec la ligne suivante:
> export PS1="\u@\h (\`pwd -P\` - \!) > "
> Ce qui donne un prompt du genre: kuty@volvic (/volvic/USERS/kuty - 534) >
> Cependant j'aimerais que cela soit plutot: kuty@volvic (kuty - 534) >
> C-a-d eviter d'avoir le chemin complet mais plutot juste le nom du repertoire courant.
> J'avais deja reussi a faire cela auparavant mais mon disque s'est crashe et je ne sais plus
> comment faire.
>

Est-ce que \W ne ferait pas l'affaire???

>
> Merci d'avance
>
> Ludovic Kuty.
>

A+

Chris

--
Christopher Bodenstein - IT Developer - mailto:cbodenstein@icon.be
Icon ® - realize your net value - http://www.icon.be
Gossetlaan 32    B-1702 Brussels - Belgium
tel * +32 2 467 95 30 - fax *  +32 2 467 95 49



---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.