TBH, I don't think there is much benefit in moving shell commands to external files :grin: 🙊 😇
We do not lint, test or otherwise validate them (afaict) and it just makes it harder for authors to edit them (and ensure they remain relevant with the surrounding text).
As much as I prefer having code-snippets be derived from docregions, it might make sense to make an exception for some content types, such as shell commands.