mirror of
https://github.com/notwa/rc
synced 2024-06-01 23:43:07 -07:00
13 lines
202 B
Plaintext
13 lines
202 B
Plaintext
|
#!/usr/bin/env sh
|
||
|
# YES_ZSH
|
||
|
|
||
|
has() {
|
||
|
if [ -n "$ZSH_VERSION" ]; then
|
||
|
whence -p "$1"
|
||
|
else
|
||
|
which "$1" >/dev/null 2>&1 && which "$1"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
[ "${SOURCING:-0}" -gt 0 ] || has "$@"
|