Why Nostr? What is Njump?
2023-11-09 10:44:39
in reply to

pistolero on Nostr: 🐘🐘 Humpleupagus 🐘🐘 holy shote dude is you runnin plan 9 or p9p Anyway, rc ...

holy shote dude is you runnin plan 9 or p9p

Anyway, rc doesn't do complex prompts. The best you can do is something like overriding cd. I don't know of anyone that does that in Plan 9 but Inferno does that kind of thing by default (though it's to set the window title rather than changing the prompt). I tested this out and it works:

fn cd { builtin cd $* && prompt = ( `{pwd}^'% ' $prompt(2) ) }
Author Public Key
npub1ch8nj9yu4676fnwkzacu28mt4y002ezeryqyuhzfnzjw560sq5fqaysw60