Sujet : Re: bash prompt question
De : damien.wyart (at) *nospam* free.fr (Damien Wyart)
Groupes : comp.unix.shellDate : 24. Sep 2024, 09:06:51
Autres entêtes
Organisation : Serveur de News Free
Message-ID : <66f2731d$0$3674$426a34cc@news.free.fr>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
* François Patte <
francois.patte@mi.parisdescartes.fr> in comp.unix.shell:
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]\]\$ '
While it is useful to play with PS1 for learning purposes, to be able to customize
your prompt easily and in a powerful way, I advise the use of a framework prompt.
There are many of them, one I really like is Starship:
https://starship.rs/https://github.com/starship/starship-- DW