Re: prompt bash coloré
On Thu, Jul 25, 2002 at 05:46:09PM +0200, aurelien naldi wrote:
> Le jeudi 25 juillet, à 17h21 Frederid LEGER a ecrit :
>
> >
> > Oui, ajouter des quotes autour du prompt
>
>
> ceci n'a en rien reglé ce probleme chez moi, par contre passer a
> la ligne le resout. c'est par ailleurs tout a fait confortable :
> ca permet d'avoir le repertoire courant et l'heure dans le prompt
> sans pour autant qu'il occupe toute la place
>
> mon prompt :
> PS1="\e[0;32m\u@\h \e[m[\e[33m\t\e[m] \e[1;36m\w\e[m\n§ "
>
> --
> aurelien
>
> ------
> Training is everything. The peach was once a bitter almond;
> cauliflower is
> nothing but cabbage with a college education.
> -- Mark Twain, "Pudd'nhead Wilson's Calendar"
>
>
> --
> To UNSUBSCRIBE, email to debian-user-french-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debianorg
>
oui, ma faute :-/
NOCOLOR='\e[0;00m'
ROUGE='\e[1;31m'
BLEU='\e[1;34m'
WTITLE_START='\033]0;'
WTITLE_END='\007'
case $TERM in
xterm|eterm|rxvt)
PS1="\[[$ROUGE\u$NOCOLOR@$BLEU\h$NOCOLOR:\W]$
$WTITLE_START\h$WTITLE_END\]"
;;
*)
PS1='\[[\u@\h:\W] \$\]'
;;
esac
#
# Forget that now it's useless
#
unset NOCOLOR
unset ROUGE
unset BLEU
unset WTITLE_START
unset WTITLE_END
Ca devrait mieux marcher avec ca en totu cas c'est ce qu'on m'a repondu
quand j'ai posé la meme question :))
Bon courage
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
--
To UNSUBSCRIBE, email to debian-user-french-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: