helm/zsh/functions/command_exists

3 lines
58 B
Plaintext
Raw Normal View History

2014-09-05 13:54:15 -07:00
# Detect if a command exists
command -v "$1" &> /dev/null