scriptura: a cozy corner for your scripts
“I’ve created a new little tool to help run and manage scripts in a folder tree, called scriptura. It is based on the idea behind sd and is made for fish users.”
Jump to Highlight ↗
If I type in scriptura run os update linde, it will run the script at ~/scripts/os/update/linde, whilst providing tab completion for each element. Pressing tab after a script has been resolved will first add -- to clearly show the end of the script part of the command line, then use the default shell filename completion.
The usage information gives more detail on what can be done.
To reduce the amount of typing required, I have set the following aliases.
The fish completion system handles these well: sf <tab> will show me scripts to be run, whereas sfm will show me the subcommands of the tool.
To aid documentation, scriptura will look in a couple of places:
Whilst scriptura is written in fish, scripts don’t have to be; it’s just the default. scriptura new will create scripts with a fish shebang, which can be freely edited. I also plan to add a command-line option to set a different interpreter.
The blog post version of sd and the version published to Github already differ in that the blog post version uses subcommands like sd new, whereas the Github version uses flags for actions that don’t involve running a script (e.g. sd --new). I prefer the subcommand style, at least when there is a short alias to the run subcommand.
📝 Your Private Notes & Highlights 🔒 Only visible to you
Log in or create a free account to keep private highlights and personal notes on your stored picks.
Featured on Storesso
Are you the creator of alanpearce.eu? Share your verified feature badge on your website, or export a custom 4:5 editorial social card for Instagram and X.
Generate a 1080×1350 vertical high-res feature card tailored for social sharing.
Instagram & X Feature Card
Export a polished, high-resolution 4:5 editorial graphic displaying your verified inclusion in the Storesso Discovery Index. Perfect for launch threads, founder updates, and newsletters.