scriptura: a cozy corner for your scripts

15 points by winter 15 hours ago on lobsters | 5 comments

ianthehenry | 6 hours ago

hey super cool! i mostly switched to the flag style so i could up-arrow edit more easily when a command didn’t work. gave up the nice elegance of the commands themselves just being regularscripts though. -sd person

I've always liked how (iirc) in plan9's rc shell you can just refer to scripts by directory. So you really could just setup your /bin like the scripts directory and type:

; bin/os/update/linde <args>

I think that's how that works, it's been a while since I've used rc.

landon | 4 hours ago

That kinda sounds like the same ~/bin/... problem this and sd are tryna avoid.

Crestwave | 3 hours ago

Not quite. The unique thing about rc is that it resolves directories in your $path as well.

This means that you can have /bin/os/update/linde and call it by typing os/update/linde rather than the full path, since it is able to resolve os/ to /bin/os/.

Thank you! This is what I meant.