dotfiles/home/private_dot_config/zsh/functions/executable_is-exe

7 lines
94 B
Text

#? check if executable exists
if [ -x "$(command -v $1)" ]; then
return 0
else
return 1
fi