From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30497 invoked from network); 23 Dec 2021 12:05:30 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 23 Dec 2021 12:05:30 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 3372F9CEAD; Thu, 23 Dec 2021 22:05:28 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 7175F9CC2E; Thu, 23 Dec 2021 22:05:13 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="A+mIrFtj"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 07EEB9CC2E; Thu, 23 Dec 2021 22:05:12 +1000 (AEST) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) by minnie.tuhs.org (Postfix) with ESMTPS id 59DBA9CC00 for ; Thu, 23 Dec 2021 22:05:10 +1000 (AEST) Received: by mail-yb1-f177.google.com with SMTP id e136so15759291ybc.4 for ; Thu, 23 Dec 2021 04:05:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nzoSK6AsAtCrXcCL2tY8tLKryGf9ZCvZIFWwLogqD90=; b=A+mIrFtj+FU/uIZ3YwBHHqnZpMo3GWGtOz+JGW/fJSqCfnJZ7OBWt5lqbXfmv09o2H 4GE61spgXN5rmxF+YHLxhaofsPHySyPpv5qZiDt3hKRZ+CeQnOA3IhVAVoXyUCpL7hsE rr1PefDcr57OO2cNIq6YEZBfWxjEf1hChBt31kV4V0wqrYlh5VvUOYozN5lxzSmm6DvA UT0lBpVMvTxSvlNGqBLz7PMzvd4EyqVZK8hf+QxePvCpu6A5aw3ZW0BkeiElTbXakBhr orHbDWeY8dejr6Xf7gXcf8LvMsBf64OZJWrieG4xkWhDsOWzsb2vqC8LI3EiAVQBIIcr kn4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nzoSK6AsAtCrXcCL2tY8tLKryGf9ZCvZIFWwLogqD90=; b=tF5OZpDv7Z7yEZbjVBH1aYOoJpyJjRXYSmV+6su2rUzap0gF6r4l4PlF2nymjORzIQ Rrq++wcSzR5RdtfpjytT+JML125Zwtl2y6AAd+MCAOIPXxgxUYDqD8YYBAlDbBb4+9l2 iepygPqwOYYOQyZ53Nq4VxLsJrHEoKMPiDHtcIIkg3JjG402BHwAPLSXTAYjTjw6NtW3 CtC5VHHY+q/hYPN6dSBuHJg0ZMZjv5kZ/WQV9DbbR0tyLMzYoR7fqoxvY/r3MKENTNYC RCBVYJDzI2jlVzJAHAzns1of4k3E6KFzeLuUpCgpTKwL15zGBVvB2W5mHiiEoLkn1O+Y wJQQ== X-Gm-Message-State: AOAM5310J8yzWpqWis8B+qfSxbNcmY89FqlkbUP2BzvM6jewsSirRZqD f4kwEREtla4jSiH45B4ppTp6bS5IRzw6m4uA45E= X-Google-Smtp-Source: ABdhPJweE+3CW8bRn2CJKVhE5W+9GDiXsAtpi9L7oIQLMI2JrVvrFavJpdy4+twQT3alKg4T6ZEqjrh7yUE/BdC0juI= X-Received: by 2002:a25:d7c3:: with SMTP id o186mr3000181ybg.104.1640261109156; Thu, 23 Dec 2021 04:05:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "John P. Linderman" Date: Thu, 23 Dec 2021 07:04:57 -0500 Message-ID: To: Andy Kosela Subject: Re: [COFF] What is your prompt? (was: ksh88 source code?) X-BeenThere: coff@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Computer Old Farts Forum List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Computer Old Farts Followers Content-Type: multipart/mixed; boundary="===============8077314199477230127==" Errors-To: coff-bounces@minnie.tuhs.org Sender: "COFF" --===============8077314199477230127== Content-Type: multipart/alternative; boundary="000000000000c0117805d3cf0c53" --000000000000c0117805d3cf0c53 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've been a "fancy prompt" fan for decades. It started when I got (possibly the first) CRT (HP2641?) at Bell Labs with command re-entry capability. I put a @ at the end of my prompt, so when I re-entered a line, the prompt itself would disappear (@ was the default line-kill character in the pre-internet era). As it got possible to make ksh prompts fancier, I put a newline at the end of the prompt, and used command number, host name, and working directory, color coded (although that may well not show up): 1896 jpl:/home/jpl/Downloads Easy to visually distinguish prompts from commands, and copy/paste commands. And I jiggered a local cd command to put user@host ptty current-directory window-size in the terminal window title. Handier before I retired, when I had many hosts I might be visiting with ssh. Overkill, arguably, but CPU cycles are cheap now. On Thu, Dec 23, 2021 at 2:00 AM Andy Kosela wrote: > On 12/22/21, Adam Thornton wrote: > > MacOS finally pushed me to zsh. So I went all the way and installed > > oh-my-zsh. It makes me feel very dirty, and I have a two-line prompt > (!!), > > but I can't deny it's convenient. > > > > tickets/DM-32983 =E2=9C=97 > > adam@m1-wired:~/git/jenkins-dm-jobs$ > > > > (and in my terminal, the X glyph next to my git branch showing the stat= us > > is dirty is red while the branch name is green) > > > > and if something doesn't exit with rc=3D0... > > > > adam@m1-wired:~/git/jenkins-dm-jobs$ fart > > zsh: command not found: fart > > tickets/DM-32983 =E2=9C=97127 =E2=9A=A0=EF=B8=8F > > adam@m1-wired:~/git/jenkins-dm-jobs$ > > > > Then I also get the little warning glyph and the rc of the last command > in > > my prompt. > > > > But then I'm also now using Fira Code with ligatures in my terminal, so > > I've pretty much gone full Red Lightsaber. > > I try to keep my prompt as simple as possible. For years I have been > using: > > moon $ > > That 's it. No fancy colors, not even displaying current working > directory. I have an alias 'p' for that. > > --Andy > _______________________________________________ > COFF mailing list > COFF@minnie.tuhs.org > https://minnie.tuhs.org/cgi-bin/mailman/listinfo/coff > --000000000000c0117805d3cf0c53 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I&#= 39;ve been a "fancy prompt" fan for decades. It started when I go= t (possibly the first) CRT (HP2641?) at Bell Labs with command re-entry cap= ability. I put a=C2=A0@ at the end of my prompt, so when I re-entered a lin= e, the prompt itself would disappear (@ was the default line-kill character= in the pre-internet era). As it got possible to make ksh=C2=A0 prompts fan= cier, I put a newline at the end of the prompt, and used command number, ho= st name, and working directory, color coded (although that may well not sho= w up):

1896 jpl:/home/jpl= /Downloads
=
Easy to vi= sually distinguish prompts from commands, and copy/paste commands. And I ji= ggered a local cd command to put
=C2=A0 user@host ptty current-directory window-size
=
in the terminal wind= ow title. Handier before I retired, when I had many hosts I might be visiti= ng with ssh. Overkill, arguably, but CPU cycles are cheap now.=C2=A0
<= div class=3D"gmail_default" style=3D"font-size:small">

<= div class=3D"gmail_quote">
On Thu, Dec= 23, 2021 at 2:00 AM Andy Kosela <akosela@andykosela.com> wrote:
On 12/22/21, Adam Thornton <athornton@gmail.com> wrote: > MacOS finally pushed me to zsh.=C2=A0 So I went all the way and instal= led
> oh-my-zsh.=C2=A0 It makes me feel very dirty, and I have a two-line pr= ompt (!!),
> but I can't deny it's convenient.
>
> tickets/DM-32983 =E2=9C=97
> adam@m1-wired:~/git/jenkins-dm-jobs$
>
> (and in my terminal, the X glyph next to my git branch showing the sta= tus
> is dirty is red while the branch name is green)
>
> and if something doesn't exit with rc=3D0...
>
> adam@m1-wired:~/git/jenkins-dm-jobs$ fart
> zsh: command not found: fart
> tickets/DM-32983 =E2=9C=97127 =E2=9A=A0=EF=B8=8F
> adam@m1-wired:~/git/jenkins-dm-jobs$
>
> Then I also get the little warning glyph and the rc of the last comman= d in
> my prompt.
>
> But then I'm also now using Fira Code with ligatures in my termina= l, so
> I've pretty much gone full Red Lightsaber.

I try to keep my prompt as simple as possible.=C2=A0 For years I have been = using:

=C2=A0 moon $

That 's it.=C2=A0 No fancy colors, not even displaying current working<= br> directory.=C2=A0 I have an alias 'p' for that.

--Andy
_______________________________________________
COFF mailing list
COFF@minnie.tuhs.= org
https://minnie.tuhs.org/cgi-bin/mailman/listinf= o/coff
--000000000000c0117805d3cf0c53-- --===============8077314199477230127== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQ09GRiBtYWls aW5nIGxpc3QKQ09GRkBtaW5uaWUudHVocy5vcmcKaHR0cHM6Ly9taW5uaWUudHVocy5vcmcvY2dp LWJpbi9tYWlsbWFuL2xpc3RpbmZvL2NvZmYK --===============8077314199477230127==--