mirror of
https://github.com/notwa/rc
synced 2024-06-29 02:17:12 -07:00
14 lines
309 B
Bash
14 lines
309 B
Bash
#!/usr/bin/env sh
|
|
# YES_ZSH
|
|
# YES_BASH
|
|
# YES_DASH
|
|
|
|
# TODO: source pippy here? this may affect dash compatibility.
|
|
|
|
pegg() {
|
|
[ $# -ge 2 ] || { printf "%s\n" "$0: too few arguments" >&2; return 1; }
|
|
pippy "https://github.com/$1/$2/tarball/${3:-master}#egg=$2"
|
|
}
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || pegg "$@"
|