[COFF] What is your prompt?

Grant Taylor gtaylor at tnetconsulting.net
Sun Dec 26 13:44:03 AEST 2021


On 12/25/21 12:14 PM, Steffen Nurpmeso wrote:
> Sure.  Oh the compatibility of shells i meant, of course.  But that 
> mostly colours, now that ~/.profile ensures HOSTNAME and LOGNAME 
> per se.  No more \XY escapes here, except \e and the \[..\] that some 
> need (to get it column counting right, with colours) (SHTYPE=bash 
> and =yash).

Printing vs non-printing characters are important.

> You look for $0, sometimes deeper for some *_VERSION, for $OSTYPE 
> (which my ~/.profile sets, too).  But in the end it is all a mess.

Hum.  I've not thought about trying to tease that information out of 
environment variables.  Instead, I create my own environment variables 
and populate them from various $(uname ...) output.



-- 
Grant. . . .
unix || die

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4017 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://minnie.tuhs.org/pipermail/coff/attachments/20211225/f389eaf7/attachment.bin>


More information about the COFF mailing list