somehow I missed this. elegant and implements ksh/bash/zsh ':' builtin, in a function.
On Sat, Oct 3, 2026 at 11:31 PM Anthony Sorace <[email protected]> wrote: > > 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-M688c6bd4d6be8f5935ef95a2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
