Deutsch   English   Français   Italiano  
<66f2731d$0$3674$426a34cc@news.free.fr>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed4-a.proxad.net!nnrp3-1.free.fr!not-for-mail
From: Damien Wyart <damien.wyart@free.fr>
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Organization: Serveur de News Free
References: <vcguof$hca7$1@dont-email.me>
Date: Tue, 24 Sep 2024 10:06:51 +0200
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Lines: 15
Message-ID: <66f2731d$0$3674$426a34cc@news.free.fr>
NNTP-Posting-Date: 24 Sep 2024 10:06:53 CEST
NNTP-Posting-Host: 86.252.47.27
X-Trace: 1727165213 news-4.free.fr 3674 86.252.47.27:53588
X-Complaints-To: abuse@proxad.net
Bytes: 1345

* 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