Sujet : Re: bash prompt question
De : francois.patte (at) *nospam* mi.parisdescartes.fr (François Patte)
Groupes : comp.unix.shellDate : 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.