commit cc3fa2df2d34dd3d0e37507e7e4a97e0ee4d1d28 parent 99e3ca1c9d5d5e18242c18fa55a3d285182bda06 Author: Alex Balgavy <EMAIL> Date: Sat, 7 Sep 2019 15:58:36 -0400 vim: sh snippets Former-commit-id: e3e717fd3ffa8dcc7e93e904f0d9a167718b959a Diffstat:
M | vim/ultisnips/sh.snippets | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/vim/ultisnips/sh.snippets b/vim/ultisnips/sh.snippets @@ -52,7 +52,7 @@ done eval set -- "\$PARAMS" endsnippet -snippet bash "Bash shebang" b +snippet !bash "Bash shebang" b #!/usr/bin/env bash $0 endsnippet @@ -64,3 +64,11 @@ if ! command -v ${1:command} &>/dev/null; then fi $0 endsnippet + +snippet die "Die function" b +die() { + echo "\$1" >&2 + exit 1 +} +$0 +endsnippet