Fork me on GitHub
#emacs
<
2022-01-14
>
vemv14:01:52

Anyone has a thingy that inserts some boilerplate whenever a new .sh file is created? mine is:

#!/usr/bin/env bash
set -Eeuxo pipefail
cd "${BASH_SOURCE%/*}"

hindol15:01:03

Given that CIDER (or clojure-mode) inserts the ns bits in every new Clojure file, this seems doable.

vemv15:01:48

indeed :) perhaps someone has packaged it already

vemv15:01:51

looks tasty! particularly as I already use yasnippet, thanks 🍻

hindol15:01:36

And doom emacs has a file-templates module that uses yasnippet.

hindol15:01:52

You can check what they are doing in that module.

Ben Sless06:01:18

Why create new shell files instead of babashka? 🙃