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

7 lines
94 B
Plaintext

# name: if command -v ...
# key: ifcmd
# --
if command -v $1 >/dev/null 2>&1; then
$0
fi