hamacs/snippets/sh-mode/__

12 lines
403 B
Text
Raw Permalink Normal View History

# -*- mode: snippet -*-
# name: shell-init
# key: __
# --
#!/usr/bin/env `(if (equal (file-name-extension buffer-file-name) "zsh") "zsh" "bash")`
# ----------------------------------------------------------------------
# `(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`: $0
# ----------------------------------------------------------------------
set -euo pipefail
$0