2021-07-29 00:37:35 -07:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
# YES_ZSH
|
2021-07-29 05:44:12 -07:00
|
|
|
# YES_BASH
|
|
|
|
# YES_DASH
|
2021-07-29 00:37:35 -07:00
|
|
|
|
|
|
|
has() {
|
|
|
|
if [ -n "$ZSH_VERSION" ]; then
|
|
|
|
whence -p "$1"
|
|
|
|
else
|
|
|
|
which "$1" >/dev/null 2>&1 && which "$1"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || has "$@"
|