On Oct 3, 2026, at 19:24, Skip Tavakkolian <[email protected]> wrote:
>
> if you have a dynamic prompt, then the fn example in
> the quiz would also need to be created for every prompt which would
> pollute /env a fair bit.
My solution to that is like this:
prompt=(': '$sysname'; ' ' ')
fn : {}
On terminals the prompt is just ":;", but start with ": ", end with ";", and
put whatever dynamic bits you like in between; no environment pollution
necessary.
(I think I got this from rsc.)
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tfc2f1095f79c2bb7-Ma89ff0d42aec040a5818d82f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription