1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-01 23:43:07 -07:00
rc/sh/pegg

10 lines
223 B
Plaintext
Raw Normal View History

2021-07-29 00:37:35 -07:00
#!/usr/bin/env sh
# YES_ZSH
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 "$@"