Re: bash prompt question

Liste des GroupesRevenir à cu shell 
Sujet : Re: bash prompt question
De : bpatrie (at) *nospam* bellsouth.spamisicky.net (Brian Patrie)
Groupes : comp.unix.shell
Date : 23. Sep 2024, 09:07:07
Autres entêtes
Organisation : an elaborate system of piles and accidents
Message-ID : <vcr7jb$2kdlf$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
Chris Elvidge wrote:
 > try export PS1='\[\e[1;35m\]\u@\h -\d- ${text} \W\[\e[00m\]\$ '
In bash (and most shells), PS1, etc do not need to be exported; as long as they're set in .bashrc, they will be set in every interactive bash session.  Moreover, exporting them will make a mess in sh:
   $ export PS1='\[\e[1;35m\]\u@\h -\d- ${text} \W\[\e[00m\]\$ '
   foh@enceladus -Mon Sep 23-  ~$ sh
   \[\e[1;35m\]\u@\h -\d-  \W\[\e[00m\]$
sh (and its clones)--which don't support an rc file--are, of course, the exception to this rule.

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