ambevar-dotfiles/.emacs.d/snippets/sh-mode/notcmd

8 lines
144 B
Plaintext

# name: ! command ...
# key: notcmd
# --
if ! command -v $1 >/dev/null 2>&1; then
echo "'$1' not found in PATH. Exiting." >&2
exit 1
fi