pistolero on Nostr: ππ Humpleupagus ππ holy shote dude is you runnin plan 9 or p9p Anyway, rc ...
ππ Humpleupagus ππ (npub1aw2β¦70dd) 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) ) }
Published at
2023-11-09 10:44:39Event JSON
{
"id": "4b9ddabf64b61fab3d4de5bde9839f6a448a64dcb1d6299b55041c47eafa087a",
"pubkey": "c5cf39149caebda4cdd61771c51f6ba91ef5645919004e5c4998a4ea69f00512",
"created_at": 1699526679,
"kind": 1,
"tags": [
[
"p",
"eb94e902217523a07f5a8d3a07f690019df60b28e233a5daf6a6da205499117d",
"wss://relay.mostr.pub"
],
[
"e",
"3f6a9699f2832cd91dcd74eb397110cf854f8f7c22e97fdd1218f179a7b2e4c9",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://freespeechextremist.com/objects/250ab5eb-777b-4b05-8b40-4fb3a1504b94",
"activitypub"
]
],
"content": "nostr:npub1aw2wjq3pw536ql6635aq0a5sqxwlvzeguge6tkhk5mdzq4yez97sdp70dd holy shote dude is you runnin plan 9 or p9p\n\nAnyway, 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:\n\nfn cd { builtin cd $* \u0026\u0026 prompt = ( `{pwd}^'% ' $prompt(2) ) }",
"sig": "b9df8d59b9357f828cf7db630bd897ffcb166ca8a32bec5202ebe4a031a90a18cb84e08198e57c412f7190c19e2838cce52321829a844defda8eac180f130a3d"
}