Sujet : Re: bash prompt question
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shellDate : 24. Sep 2024, 18:47:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240924104154.930@kylheku.com>
References : 1 2
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-09-24, Damien Wyart <
damien.wyart@free.fr> wrote:
* 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
Or you can put some info into a scroll-protected status line and just
have $ as your prompt, via a tiny file you just source from your
.bashrc:
https://www.kylheku.com/cgit/basta/about/-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca