Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Q: What's tiny and yellow and very, very, dangerous? A: A canary with the super-user password.


comp / comp.unix.shell / Re: bash prompt question

SubjectAuthor
* bash prompt questionFrançois Patte
+* Re: bash prompt questionChris Elvidge
|+- Re: bash prompt questionFrançois Patte
|`* Re: bash prompt questionBrian Patrie
| `* Re: bash prompt questionGeoff Clare
|  `* Re: bash prompt questionBrian Patrie
|   `- Re: bash prompt questionGeoff Clare
+- Re: bash prompt questionGilmeh Serda
`* Re: bash prompt questionDamien Wyart
 +* What? (Was: bash prompt question)Kenny McCormack
 |+* Re: What?Damien Wyart
 ||+- Re: What?Axel Reichert
 ||+- Re: What?Kenny McCormack
 ||+- Re: What?Janis Papanagnou
 ||`- Re: What?Damien Wyart
 |`* Re: What?Damien Wyart
 | +- Re: What?Janis Papanagnou
 | `- Re: What?Damien Wyart
 +- Re: bash prompt questionKaz Kylheku
 `* Re: bash prompt questionKaz Kylheku
  +- Re: bash prompt questionKenny McCormack
  `- Re: bash prompt questionDamien Wyart

1
Subject: bash prompt question
From: François Patte
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Thu, 19 Sep 2024 10:34 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: francois.patte@mi.parisdescartes.fr (François Patte)
Newsgroups: comp.unix.shell
Subject: bash prompt question
Date: Thu, 19 Sep 2024 12:34:55 +0200
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vcguof$hca7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Sep 2024 12:34:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da2e9d6d3f89debf573ffa011985ddee";
logging-data="569671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185DMZM9D6FAB8yza3IidMD"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:d6e6XESPx/6ilwN6mXA4dkcLmPM=
Content-Language: en-GB, en-US
View all headers

Bonjour,

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]\]\$ '

What I wanted by this :
specific color
user@host
the date
wether I am on a local machine: nothing or on a remote one: ssh
and the directory

It works but not very well: if I use the up/down arrows to call back a
previous command, the behaviour changes, sometimes as if I used the keys
"Inser" or "Suppr" and at the end the usage becomes awfull.

What did I do wrong?

I hope to be understable in English language....

Thank you for helping.

François Patte

Subject: Re: bash prompt question
From: Chris Elvidge
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Thu, 19 Sep 2024 11:20 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@internal.net (Chris Elvidge)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Thu, 19 Sep 2024 12:20:40 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <vch1e9$i0sn$1@dont-email.me>
References: <vcguof$hca7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Sep 2024 13:20:41 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d05c223c85d5b0f20392d0464f4b2250";
logging-data="590743"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FykIHB3lTF0A9BvPo2N/3tf7uh6l0o2g="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:eczCv/W7ldx9CRcFNiopwIo4Vkw=
In-Reply-To: <vcguof$hca7$1@dont-email.me>
Content-Language: en-GB
View all headers

On 19/09/2024 at 11:34, François Patte wrote:
> Bonjour,
>
> 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]\]\$ '

try export PS1='\[\e[1;35m\]\u@\h -\d- ${text} \W\[\e[00m\]\$ '

where do you set $text?

>
> What I wanted by this :
> specific color
> user@host
> the date
> wether I am on a local machine: nothing or on a remote one: ssh
> and the directory
>
> It works but not very well: if I use the up/down arrows to call back a
> previous command, the behaviour changes, sometimes as if I used the keys
> "Inser" or "Suppr" and at the end the usage becomes awfull.
>
> What did I do wrong?
>
> I hope to be understable in English language....
>
> Thank you for helping.
>
> François Patte

--
Chris Elvidge, England
I WILL NOT SELL MY KIDNEY ON eBAY

Subject: Re: bash prompt question
From: François Patte
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Thu, 19 Sep 2024 12:30 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: francois.patte@mi.parisdescartes.fr (François Patte)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Thu, 19 Sep 2024 14:30:19 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <d86b1853-db1c-4174-98bf-b9dfec8a355d@mi.parisdescartes.fr>
References: <vcguof$hca7$1@dont-email.me> <vch1e9$i0sn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Sep 2024 14:30:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da2e9d6d3f89debf573ffa011985ddee";
logging-data="605722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R2h7Sp5KPP6vUZZGtN14J"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fj7OXc/X1x6mMtnbMILRmdPeXI8=
In-Reply-To: <vch1e9$i0sn$1@dont-email.me>
Content-Language: en-GB, en-US
View all headers

Le 19/09/2024 à 13:20, Chris Elvidge a écrit :
> On 19/09/2024 at 11:34, François Patte wrote:
>> Bonjour,
>>
>> 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]\]\$ '
>
> try export PS1='\[\e[1;35m\]\u@\h -\d- ${text} \W\[\e[00m\]\$ '

I will try this. Thank you.

>
> where do you set $text?

I don't know! That's strange... I did this a long time ago and I can't
remember where I picked up this.

Doing "echo $text" on a local machine, this returns nothing and on a
remote one, I get ssh (of course, I am logged to the remote machine,
using ssh)

Thank you for helping

F.P.

Subject: Re: bash prompt question
From: Gilmeh Serda
Newsgroups: comp.unix.shell
Organization: Easynews - www.easynews.com
Date: Thu, 19 Sep 2024 18:28 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.swapon.de!news.in-chemnitz.de!3.eu.feeder.erje.net!feeder.erje.net!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx12.ams4.POSTED!not-for-mail
From: gilmeh.serda@nothing.here.invalid (Gilmeh Serda)
Subject: Re: bash prompt question
Newsgroups: comp.unix.shell
References: <vcguof$hca7$1@dont-email.me>
MIME-Version: 1.0
x-no-archive: yes
User-Agent: Pan/0.160 (Toresk; 9d04e24)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 17
Message-ID: <V2_GO.88856$4J12.60558@fx12.ams4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 19 Sep 2024 18:28:05 GMT
X-Received-Bytes: 1222
View all headers

On Thu, 19 Sep 2024 12:34:55 +0200, François Patte wrote:

> Wanting to personalize my bash prompt I wrote in my .bashrc file (with
> the help of "Learning the BASH shell"):

You could try something like this:
https://bash-prompt-generator.org/

Might or might not work for your needs.

I'm sure there must be similar projects out there.

--
Gilmeh

What's a cult? It just means not enough people to make a minority. --
Robert Altman

Subject: Re: bash prompt question
From: Brian Patrie
Newsgroups: comp.unix.shell
Organization: an elaborate system of piles and accidents
Date: Mon, 23 Sep 2024 08:07 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bpatrie@bellsouth.spamisicky.net (Brian Patrie)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Mon, 23 Sep 2024 03:07:07 -0500
Organization: an elaborate system of piles and accidents
Lines: 13
Message-ID: <vcr7jb$2kdlf$1@dont-email.me>
References: <vcguof$hca7$1@dont-email.me> <vch1e9$i0sn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 23 Sep 2024 10:07:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="07d469a37aaf4552d36807b0d9e4d9a3";
logging-data="2766511"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OgNHOXz7ggSPzlqu47yYaRbv0zh/h5r8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+jArllVBPIrqf8GpWAu/rfTkZ9M=
In-Reply-To: <vch1e9$i0sn$1@dont-email.me>
Content-Language: en-GB
View all headers

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.

Subject: Re: bash prompt question
From: Geoff Clare
Newsgroups: comp.unix.shell
Date: Mon, 23 Sep 2024 12:44 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: geoff@clare.See-My-Signature.invalid (Geoff Clare)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Mon, 23 Sep 2024 13:44:09 +0100
Lines: 9
Message-ID: <pd48sk-t03.ln1@ID-313840.user.individual.net>
References: <vcguof$hca7$1@dont-email.me> <vch1e9$i0sn$1@dont-email.me>
<vcr7jb$2kdlf$1@dont-email.me>
Reply-To: netnews@gclare.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net Qt5dVcArQwgq7AFpXK6/mQBFXo5bUkDRpVU7i4/iHD97XG8FC7
X-Orig-Path: ID-313840.user.individual.net!not-for-mail
Cancel-Lock: sha1:7czBq6XUPxjGsL6Cbx3Vb79OdaA= sha256:6qpPc3cS/OcaGRz+StbFftENt+Z309loXpWOenQjx7c=
User-Agent: Pan/0.154 (Izium; 517acf4)
View all headers

Brian Patrie wrote:

> sh (and its clones)--which don't support an rc file--are, of course, the
> exception to this rule.

You don't count a file specified in ENV as an "rc file" ?

--
Geoff Clare <netnews@gclare.org.uk>

Subject: Re: bash prompt question
From: Brian Patrie
Newsgroups: comp.unix.shell
Organization: an elaborate system of piles and accidents
Date: Tue, 24 Sep 2024 06:42 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bpatrie@bellsouth.spamisicky.net (Brian Patrie)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Tue, 24 Sep 2024 01:42:47 -0500
Organization: an elaborate system of piles and accidents
Lines: 9
Message-ID: <vctn17$33vov$1@dont-email.me>
References: <vcguof$hca7$1@dont-email.me> <vch1e9$i0sn$1@dont-email.me>
<vcr7jb$2kdlf$1@dont-email.me> <pd48sk-t03.ln1@ID-313840.user.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 Sep 2024 08:42:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5297d24f399acc4a8d0c3bb05251ca4c";
logging-data="3276575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qXi6Yjs3JBbB4tV1G2jj2VJE7MqA/BDI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NVUtExNFRZ5CqjsKlrIEiLRMn1o=
Content-Language: en-GB
In-Reply-To: <pd48sk-t03.ln1@ID-313840.user.individual.net>
View all headers

Geoff Clare wrote:
> Brian Patrie wrote:
>> sh (and its clones)--which don't support an rc file--are,
>> of course, the exception to this rule.
>
> You don't count a file specified in ENV as an "rc file" ?

Not all shells support ENV. dash doesn't seem to. Even if they did, it
would still be a bad idea to export the prompt strings in other shells.

Subject: Re: bash prompt question
From: Damien Wyart
Newsgroups: comp.unix.shell
Organization: Serveur de News Free
Date: Tue, 24 Sep 2024 08:06 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.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@free.fr (Damien Wyart)
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
View all headers

* 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

Subject: What? (Was: bash prompt question)
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Tue, 24 Sep 2024 08:51 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: What? (Was: bash prompt question)
Date: Tue, 24 Sep 2024 08:51:46 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vctuj2$2cer6$1@news.xmission.com>
References: <vcguof$hca7$1@dont-email.me> <66f2731d$0$3674$426a34cc@news.free.fr>
Injection-Date: Tue, 24 Sep 2024 08:51:46 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2505574"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <66f2731d$0$3674$426a34cc@news.free.fr>,
Damien Wyart <damien.wyart@free.fr> wrote:
....
>your prompt easily and in a powerful way, I advise the use of a framework prompt.

What is a "framework prompt" ?

--
Christianity is not a religion.

- Rick C Hodgin -

Subject: Re: What?
From: Damien Wyart
Newsgroups: comp.unix.shell
Organization: Serveur de News Free
Date: Tue, 24 Sep 2024 10:10 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp6-1.free.fr!not-for-mail
From: damien.wyart@free.fr (Damien Wyart)
Newsgroups: comp.unix.shell
Subject: Re: What?
Organization: Serveur de News Free
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
<vctuj2$2cer6$1@news.xmission.com>
Date: Tue, 24 Sep 2024 12:10:13 +0200
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain
Lines: 20
Message-ID: <66f29006$0$3283$426a74cc@news.free.fr>
NNTP-Posting-Date: 24 Sep 2024 12:10:14 CEST
NNTP-Posting-Host: 86.252.47.27
X-Trace: 1727172614 news-2.free.fr 3283 86.252.47.27:56628
X-Complaints-To: abuse@proxad.net
View all headers

* gazelle@shell.xmission.com (Kenny McCormack) in comp.unix.shell:
> What is a "framework prompt" ?

Sorry, wanted to write "(shell, not LLM) prompt framework" :)

In addition to Starship, the main ones that come to mind are:
- https://github.com/liquidprompt/liquidprompt
- https://github.com/JanDeDobbeleer/oh-my-posh
- https://github.com/b-ryan/powerline-shell (not active any more, it seems)
- https://github.com/justjanne/powerline-go

These two are also very well-known, but only work with zsh:
- https://github.com/ohmyzsh/ohmyzsh (much wider scope than prompt, but
customizing it is one the most visible features)
- https://github.com/sindresorhus/pure

I use zsh, so I tested most of them and I chose Starship as my daily driver.

--
DW

Subject: Re: What?
From: Axel Reichert
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Sep 2024 12:00 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mail@axel-reichert.de (Axel Reichert)
Newsgroups: comp.unix.shell
Subject: Re: What?
Date: Tue, 24 Sep 2024 14:00:18 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <87y13h5kj1.fsf@axel-reichert.de>
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
<vctuj2$2cer6$1@news.xmission.com>
<66f29006$0$3283$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 24 Sep 2024 14:00:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3d1e5f20ced3c9924a65707c86e3c9b3";
logging-data="3363958"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KAzlbGO/6tc3hFhveIhboggpqfKWnT9k="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:yF1bHxLkKhyIl+QCS4ZE9egRK9w=
sha1:2wVlCnKMgtUlisVuK87zJe34fwA=
View all headers

Damien Wyart <damien.wyart@free.fr> writes:

> * gazelle@shell.xmission.com (Kenny McCormack) in comp.unix.shell:
>> What is a "framework prompt" ?
>
> Sorry, wanted to write "(shell, not LLM) prompt framework" :)
>
> In addition to Starship, the main ones that come to mind are:
> - https://github.com/liquidprompt/liquidprompt
> - https://github.com/JanDeDobbeleer/oh-my-posh
> - https://github.com/b-ryan/powerline-shell (not active any more, it seems)
> - https://github.com/justjanne/powerline-go

Thanks for the links. I had a quick glance at Starship and found that it
needs to be installed (in contrast to the prompt generator website
mentioned else-thread) and seems to have its own configuration language
(which needs to be learned).

From my home user's point of view this feels like a whole lot of effort
for something that at least for me is something that I configure once
and then do not touch it for years (likewise I do not do shell-hopping).

Could you please elaborate on your use cases and why you think the IMHO
considerable overhead is worthwhile for you?

Best regards

Axel

Subject: Re: What?
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Tue, 24 Sep 2024 12:02 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: What?
Date: Tue, 24 Sep 2024 12:02:14 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vcu9o6$2cjm5$1@news.xmission.com>
References: <vcguof$hca7$1@dont-email.me> <66f2731d$0$3674$426a34cc@news.free.fr> <vctuj2$2cer6$1@news.xmission.com> <66f29006$0$3283$426a74cc@news.free.fr>
Injection-Date: Tue, 24 Sep 2024 12:02:14 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2510533"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <66f29006$0$3283$426a74cc@news.free.fr>,
Damien Wyart <damien.wyart@free.fr> wrote:
....
>Sorry, wanted to write "(shell, not LLM) prompt framework" :)

What is a "(shell, not LLM) prompt framework" ?

--
Modern Conservative: Someone who can take time out from demanding more
flag burning laws, more abortion laws, more drug laws, more obscenity
laws, and more police authority to make warrantless arrests to remind
us that we need to "get the government off our backs".

Subject: Re: What?
From: Janis Papanagnou
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Sep 2024 12:11 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: What?
Date: Tue, 24 Sep 2024 14:11:29 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vcua9h$36q34$1@dont-email.me>
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr> <vctuj2$2cer6$1@news.xmission.com>
<66f29006$0$3283$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 Sep 2024 14:11:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2840717624f99e06c1a845f4f7da582e";
logging-data="3369060"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yLwHgegYB/n4DolFvuXJb"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:uRvlQw8gIk9Qr+6irK6A6GdaHK4=
X-Mozilla-News-Host: news://news.eternal-september.org
In-Reply-To: <66f29006$0$3283$426a74cc@news.free.fr>
View all headers

On 24.09.2024 12:10, Damien Wyart wrote:
> * gazelle@shell.xmission.com (Kenny McCormack) in comp.unix.shell:
>> What is a "framework prompt" ?
>
> Sorry, wanted to write "(shell, not LLM) prompt framework" :)

Fine. But what is a "framework prompt" (or a "(shell, not LLM)
prompt framework" if you prefer that)? Since you're suggesting
something (in context of something as simple as a shell prompt)
that is obviously not commonly known, do you mind to explain?
Preferably with a rationale or statement why it shall be used
(as opposed to just defining prompt the usual and simple way).

Janis, curious

Subject: Re: bash prompt question
From: Geoff Clare
Newsgroups: comp.unix.shell
Date: Tue, 24 Sep 2024 12:26 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: geoff@clare.See-My-Signature.invalid (Geoff Clare)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Tue, 24 Sep 2024 13:26:01 +0100
Lines: 22
Message-ID: <pnnask-hc.ln1@ID-313840.user.individual.net>
References: <vcguof$hca7$1@dont-email.me> <vch1e9$i0sn$1@dont-email.me>
<vcr7jb$2kdlf$1@dont-email.me>
<pd48sk-t03.ln1@ID-313840.user.individual.net>
<vctn17$33vov$1@dont-email.me>
Reply-To: netnews@gclare.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net esRn7a2/cUBHbP0CbYFOFgfL+PhWmuSbsEUDc9uvkTXkuw73YH
X-Orig-Path: ID-313840.user.individual.net!not-for-mail
Cancel-Lock: sha1:9bj7rwH/69HvcaVotuHJCo3hxHA= sha256:cegsx51vhiyidMvCMalIuDPMzdFMUKmGitOZTwQKpQg=
User-Agent: Pan/0.154 (Izium; 517acf4)
View all headers

Brian Patrie wrote:

> Geoff Clare wrote:
> > Brian Patrie wrote:
> >> sh (and its clones)--which don't support an rc file--are,
> >> of course, the exception to this rule.
> >
> > You don't count a file specified in ENV as an "rc file" ?
>
> Not all shells support ENV. dash doesn't seem to.

The dash man page on my Debian system says ENV is supported.

> Even if they did, it would still be a bad idea to export the prompt
> strings in other shells.

Depends what you put in them. Personally I only use what POSIX
requires to be supported, so exporting is not a problem (and I do
export PS1).

--
Geoff Clare <netnews@gclare.org.uk>

Subject: Re: bash prompt question
From: Kaz Kylheku
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Sep 2024 17:47 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Tue, 24 Sep 2024 17:47:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <20240924104154.930@kylheku.com>
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Sep 2024 19:47:15 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b46a70f527f9686fcaaf303b9dc5ca99";
logging-data="3459888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ctMDpzLI/wVn1YLCj1tdxvd8/xG4Jns0="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:H6hz0x/HF99wJIFV4dtXgi+Kwbw=
View all headers

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/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: bash prompt question
From: Kaz Kylheku
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 24 Sep 2024 18:04 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Tue, 24 Sep 2024 18:04:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <20240924104900.445@kylheku.com>
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Sep 2024 20:04:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b46a70f527f9686fcaaf303b9dc5ca99";
logging-data="3459888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PqLpWckpI409NZCpaTecfZdMEcKw60ZY="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:hFiAHRgJ5qiS3/xxlrCcklGF4x8=
View all headers

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

This is fucking retarded. It consists of dozens of Rust source files,
not to mention .json, .yaml and other cruft.

.... for customizing shell prompts?

Please tell me it's an April Fool's joke!

You must not be old enough to remember simple computing with low
dependencies, and are probably grateful that you don't need a cloud
account and API key to use this. Or, wait, don't tell me ...

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: bash prompt question
From: Kenny McCormack
Newsgroups: comp.unix.shell
Organization: The official candy of the new Millennium
Date: Tue, 24 Sep 2024 18:50 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Date: Tue, 24 Sep 2024 18:50:55 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vcv1mf$2ctdu$2@news.xmission.com>
References: <vcguof$hca7$1@dont-email.me> <66f2731d$0$3674$426a34cc@news.free.fr> <20240924104900.445@kylheku.com>
Injection-Date: Tue, 24 Sep 2024 18:50:55 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2520510"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <20240924104900.445@kylheku.com>,
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
....
>This is fucking retarded. It consists of dozens of Rust source files,
>not to mention .json, .yaml and other cruft.

Yeah, that was the sense I was getting of it.

It looked to me like he was just trying to get people to click on his
links. Still, we must remain charitable. Sometimes, this is the only
path available for some folks to get out of their third world shithole.

>... for customizing shell prompts?
>
>Please tell me it's an April Fool's joke!

More likely, just clickbait.

>You must not be old enough to remember simple computing with low
>dependencies, and are probably grateful that you don't need a cloud
>account and API key to use this. Or, wait, don't tell me ...

Probably so.

--
A Catholic woman tells her husband to buy Viagra.

A Jewish woman tells her husband to buy Pfizer.

Subject: Re: bash prompt question
From: Damien Wyart
Newsgroups: comp.unix.shell
Organization: Serveur de News Free
Date: Wed, 25 Sep 2024 06:02 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp1-2.free.fr!not-for-mail
From: damien.wyart@free.fr (Damien Wyart)
Newsgroups: comp.unix.shell
Subject: Re: bash prompt question
Organization: Serveur de News Free
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
<20240924104900.445@kylheku.com>
Date: Wed, 25 Sep 2024 08:02:57 +0200
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain
Lines: 8
Message-ID: <66f3a791$0$1756$426a74cc@news.free.fr>
NNTP-Posting-Date: 25 Sep 2024 08:02:57 CEST
NNTP-Posting-Host: 86.252.47.27
X-Trace: 1727244177 news-2.free.fr 1756 86.252.47.27:50656
X-Complaints-To: abuse@proxad.net
View all headers

* Kaz Kylheku <643-408-1753@kylheku.com> in comp.unix.shell:
> You must not be old enough to remember simple computing with low
> dependencies

I have been using Unixes daily since 1996.

--
DW

Subject: Re: What?
From: Damien Wyart
Newsgroups: comp.unix.shell
Organization: Serveur de News Free
Date: Wed, 25 Sep 2024 08:33 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.chmurka.net!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp1-2.free.fr!not-for-mail
From: damien.wyart@free.fr (Damien Wyart)
Newsgroups: comp.unix.shell
Subject: Re: What?
Organization: Serveur de News Free
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
<vctuj2$2cer6$1@news.xmission.com>
<66f29006$0$3283$426a74cc@news.free.fr>
Date: Wed, 25 Sep 2024 10:33:50 +0200
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain
Lines: 13
Message-ID: <66f3caee$0$1785$426a74cc@news.free.fr>
NNTP-Posting-Date: 25 Sep 2024 10:33:50 CEST
NNTP-Posting-Host: 86.252.47.27
X-Trace: 1727253230 news-3.free.fr 1785 86.252.47.27:57924
X-Complaints-To: abuse@proxad.net
View all headers

> These two are also very well-known, but only work with zsh:
> - https://github.com/ohmyzsh/ohmyzsh (much wider scope than prompt, but
> customizing it is one the most visible features)
> - https://github.com/sindresorhus/pure

Just for the reference and to be more complete, I will add this one to the list:
https://github.com/spaceship-prompt/spaceship-prompt

also quite well known and which inspired Starship which was initially a rewrite in
a compiled langage to make execution much faster.

--
DW

Subject: Re: What?
From: Damien Wyart
Newsgroups: comp.unix.shell
Organization: Serveur de News Free
Date: Wed, 25 Sep 2024 08:53 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed4-a.proxad.net!nnrp3-2.free.fr!not-for-mail
From: damien.wyart@free.fr (Damien Wyart)
Newsgroups: comp.unix.shell
Subject: Re: What?
Organization: Serveur de News Free
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
<vctuj2$2cer6$1@news.xmission.com>
Date: Wed, 25 Sep 2024 10:53:20 +0200
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain
Lines: 39
Message-ID: <66f3cf80$0$3667$426a34cc@news.free.fr>
NNTP-Posting-Date: 25 Sep 2024 10:53:20 CEST
NNTP-Posting-Host: 86.252.47.27
X-Trace: 1727254400 news-4.free.fr 3667 86.252.47.27:36168
X-Complaints-To: abuse@proxad.net
View all headers

I have some NNTP issues (I can see much more articles on the public read-only
server I use than on the other one I use to post) ; I almost never post nowadays
and Usenet is really extremely niche now, so I do not want to invest time on
fixing...

I will still answer very quickly to this even if I vaguely feel a trollish tone:

> Fine. But what is a "framework prompt" (or a "(shell, not LLM)
> prompt framework" if you prefer that)? Since you're suggesting
> something (in context of something as simple as a shell prompt)
> that is obviously not commonly known, do you mind to explain?
> Preferably with a rationale or statement why it shall be used
> (as opposed to just defining prompt the usual and simple way).

I'm not interested in bike-shedding on words, we can call them prompt tools or
whatever, I don't care.

"not commonly known" might be true in this newsgroup, but if we look at the
"Github stars" for all the projects I quoted (yes, I know, this metric is not
perfect and can be criticized), they sum up to about 235000, so these projects
clearly have users.

If you have a quick look at the tools (why would the whole "evidence" be on my
side?), what they have in common is:
- they provide much more pieces of info you can choose to display (see right
column on https://starship.rs/config/) and, importantly, to not display if they
are not relevant to you
- this info is dynamic and comes from many sources unknown from the shell itself
- they are contextual: the display depends on the current directory and its
content
- they can be configured in much details and you do not need to fiddle with ANSI
codes to add colors, for example.

I will stop here on this whole topic, if people hate external prompt tools, they
are free to not use them.

--
DW

Subject: Re: What?
From: Janis Papanagnou
Newsgroups: comp.unix.shell
Organization: A noiseless patient Spider
Date: Wed, 25 Sep 2024 17:28 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re: What?
Date: Wed, 25 Sep 2024 19:28:40 +0200
Organization: A noiseless patient Spider
Lines: 75
Message-ID: <vd1h88$3p3to$1@dont-email.me>
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr> <vctuj2$2cer6$1@news.xmission.com>
<66f3cf80$0$3667$426a34cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 25 Sep 2024 19:28:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6e2543cf8c9b2e66e4308309d2643294";
logging-data="3968952"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TPhElTiLqEQtjNJc34xA1"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:l/h923VElJAvqfoRTyNjuBULKb8=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <66f3cf80$0$3667$426a34cc@news.free.fr>
View all headers

On 25.09.2024 10:53, Damien Wyart wrote:
> I have some NNTP issues (I can see much more articles on the public read-only
> server I use than on the other one I use to post) ; I almost never post nowadays
> and Usenet is really extremely niche now, so I do not want to invest time on
> fixing...
>
> I will still answer very quickly to this even if I vaguely feel a trollish tone:
>
>> Fine. But what is a "framework prompt" (or a "(shell, not LLM)
>> prompt framework" if you prefer that)? Since you're suggesting
>> something (in context of something as simple as a shell prompt)
>> that is obviously not commonly known, do you mind to explain?
>> Preferably with a rationale or statement why it shall be used
>> (as opposed to just defining prompt the usual and simple way).
>
> I'm not interested in bike-shedding on words, we can call them prompt tools or
> whatever, I don't care.
>
> "not commonly known" might be true in this newsgroup, but if we look at the
> "Github stars" for all the projects I quoted (yes, I know, this metric is not
> perfect and can be criticized), they sum up to about 235000, so these projects
> clearly have users.
>
> If you have a quick look at the tools (why would the whole "evidence" be on my
> side?), what they have in common is:
> - they provide much more pieces of info you can choose to display (see right
> column on https://starship.rs/config/) and, importantly, to not display if they
> are not relevant to you
> - this info is dynamic and comes from many sources unknown from the shell itself
> - they are contextual: the display depends on the current directory and its
> content
> - they can be configured in much details and you do not need to fiddle with ANSI
> codes to add colors, for example.
>
>
> I will stop here on this whole topic, if people hate external prompt tools, they
> are free to not use them.

With this belligerent stance (that obviously blurred your perception)
you seem to have completely missed the intent of the various responses
to your post, despite they were coherent across the posts and should
in their own individual ways of expression have been quite clear.

It was not about finding a fitting word for the software package.
It was not about click-rate or download statistics of that tool.
It was not about emotions towards the tool (fans/you vs. haters).

It was simply about what that package is supposed to do.
And why it's worth to install and use that huge package.

From all the posts (yours and other responses) I guess that you have
to install a (huge) package to introduce a layer between you and your
shell, that all input and output gets intercepted and transformed in
ways that can be controlled by an enormously large configuration file.
[ Such sort of an answer I would have hoped to get from you to shed
some light on the questions, along with some application examples
to better understand your decision why you prefer to use the tool.]

Personally, I generally try to avoid dependencies, especially to such
voluminous packages with questionable utility and unknown reliability
and potential interference to my environment. I prefer using standard
environments as much as possible and sensible, to be able to work the
same way when switching to other environments. Using e.g. ANSI codes
(if sensible) is no burden for me, certainly not more than learning a
software package and its extensive configuration options. (YMMV.)

Janis

PS: *If* the package is effectively an intercepting layer I wonder
how it will pass functions that I use in my shell (e.g. Vi Editing
Mode) to the shell. Note: this is just of academic interest to me,
so don't bother. But I suspect you're probably anyway not the right
person here to answer that, so I put it just in the post scriptum.
But, if I mis-assessed, feel free to enlighten us with some facts.

Subject: Re: What?
From: Damien Wyart
Newsgroups: comp.unix.shell
Organization: Serveur de News Free
Date: Wed, 25 Sep 2024 19:41 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-a.proxad.net!nnrp3-1.free.fr!not-for-mail
From: damien.wyart@free.fr (Damien Wyart)
Newsgroups: comp.unix.shell
Subject: Re: What?
Organization: Serveur de News Free
References: <vcguof$hca7$1@dont-email.me>
<66f2731d$0$3674$426a34cc@news.free.fr>
<vctuj2$2cer6$1@news.xmission.com>
<66f3cf80$0$3667$426a34cc@news.free.fr>
Date: Wed, 25 Sep 2024 21:41:16 +0200
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain
Lines: 16
Message-ID: <66f4675c$0$3656$426a74cc@news.free.fr>
NNTP-Posting-Date: 25 Sep 2024 21:41:16 CEST
NNTP-Posting-Host: 86.252.47.27
X-Trace: 1727293276 news-1.free.fr 3656 86.252.47.27:39926
X-Complaints-To: abuse@proxad.net
View all headers

> From all the posts (yours and other responses) I guess that you have to install
> a (huge) package to introduce a layer between you and your shell, that all input
> and output gets intercepted and transformed

No.

> PS: *If* the package is effectively an intercepting layer I wonder how it will
> pass functions that I use in my shell (e.g. Vi Editing Mode) to the shell.

I will only answer for Starship (I did not study the other tools deeply) and bash
(quite "standard"): Starship only relies on PROMPT_COMMAND, PS0, PS1 and PS2, so
once its prompt displaying is done, the shell is normal and gets its input as
usual. Same for the output of commands, it doesn't goes through Starship itself.

--
DW

1

rocksolid light 0.9.8
clearnet tor