Re: bash prompt question

Liste des GroupesRevenir à cu shell 
Sujet : Re: bash prompt question
De : francois.patte (at) *nospam* mi.parisdescartes.fr (François Patte)
Groupes : comp.unix.shell
Date : 19. Sep 2024, 13:30:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <d86b1853-db1c-4174-98bf-b9dfec8a355d@mi.parisdescartes.fr>
References : 1 2
User-Agent : Mozilla Thunderbird
Le 19/09/2024 à 13:20, Chris Elvidge a écrit :
On 19/09/2024 at 11:34, François Patte wrote:
Bonjour,
>
Wanting to personalize my bash prompt I wrote in my .bashrc file (with the help of "Learning the BASH shell"):
>
  export PS1='\[\e[1;35m\]\u@\h -\d- ${text} \W\[\e[m]\]\$ '
 try export PS1='\[\e[1;35m\]\u@\h -\d- ${text} \W\[\e[00m\]\$ '
I will try this. Thank you.

 where do you set $text?
I don't know! That's strange... I did this a long time ago and I can't remember where I picked up this.
Doing "echo $text" on a local machine, this returns nothing and on a remote one, I get ssh (of course, I am logged to the remote machine, using ssh)
Thank you for helping
F.P.

Date Sujet#  Auteur
19 Sep 24 * bash prompt question21François Patte
19 Sep 24 +* Re: bash prompt question6Chris Elvidge
19 Sep 24 i+- Re: bash prompt question1François Patte
23 Sep 24 i`* Re: bash prompt question4Brian Patrie
23 Sep 24 i `* Re: bash prompt question3Geoff Clare
24 Sep 24 i  `* Re: bash prompt question2Brian Patrie
24 Sep 24 i   `- Re: bash prompt question1Geoff Clare
24 Sep 24 `* Re: bash prompt question14Damien Wyart
24 Sep 24  +* What? (Was: bash prompt question)9Kenny McCormack
24 Sep 24  i+* Re: What?5Damien Wyart
24 Sep 24  ii+- Re: What?1Axel Reichert
24 Sep 24  ii+- Re: What?1Kenny McCormack
24 Sep 24  ii+- Re: What?1Janis Papanagnou
25 Sep 24  ii`- Re: What?1Damien Wyart
25 Sep 24  i`* Re: What?3Damien Wyart
25 Sep 24  i +- Re: What?1Janis Papanagnou
25 Sep 24  i `- Re: What?1Damien Wyart
24 Sep 24  +- Re: bash prompt question1Kaz Kylheku
24 Sep 24  `* Re: bash prompt question3Kaz Kylheku
24 Sep 24   +- Re: bash prompt question1Kenny McCormack
25 Sep 24   `- Re: bash prompt question1Damien Wyart

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal