[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-team] Construction d'un prompt
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.
Merci d'avance
Ludovic Kuty.
---------
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.