[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pimp your shell - Debian developer tips?



On Wed, Jun 03, 2020 at 07:30:01PM -0500, Gunnar Wolf wrote:
> Hello world,
> 
> Like Paul said in his reply, I also have a "bash monstrosity" as a
> Bash prompt. I last spent time tweaking it many years ago, so... This
> migh reflect what my head was like in the past, not today :-]
> 
> I am attaching here the relevant portion of my .bashrc
> 
> > Basically the only improvements over lesser distributions we have are:
> > * color: it's not for mere looks, but it visually separates output of
> >   commands between themselves
> > * full path from ~ (Fedora has only the last component which sucks)
> 
> I do consider this to be very important for me. I'm not inlining it
> here, as mine is quite verbose, but the colors are defined in
> promptFunc(). I don't really follow what you mean by "full path from
> ~" — Isn't it what \w produces?

Yes, and there are some distributions that use \W, not \w, in their
default prompt, and there are lots of people Out There(tm) who do not
even realize that \w is an option :)

G'luck,
Peter

-- 
Peter Pentchev  roam@ringlet.net roam@debian.org pp@storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13

Attachment: signature.asc
Description: PGP signature


Reply to: