doomemacs/modules/editor/file-templates/templates/sh-mode/__
Steven vanZyl ce2fee138a
Add set -euo pipefail to sh-mode file template
Adds a line with set -euo pipefail to the sh-mode file template, which improves the erroring of bash scripts
As described by https://ashishb.net/all/the-first-two-statements-of-your-bash-script-should-be/
2020-04-15 14:39:47 -04:00

4 lines
110 B
Text

#!/usr/bin/env `(if (equal (file-name-extension buffer-file-name) "zsh") "zsh" "bash")`
set -euo pipefail
$0