nvim/lua/telesnip/snippets/bash/command_exists.sh
2024-08-19 23:06:45 +02:00

4 lines
230 B
Bash

# ─< Check if the given command exists silently >─────────────────────────────────────────
command_exists() {
command -v "$@" >/dev/null 2>&1
}