mirror of
https://github.com/notwa/rc
synced 2024-05-18 17:53:23 -07:00
13 lines
238 B
Plaintext
13 lines
238 B
Plaintext
#!/usr/bin/env
|
|
# YES_ZSH
|
|
|
|
#. ~/sh/maybesudo
|
|
#. ~/sh/has
|
|
|
|
pippy() {
|
|
local sudo="$(has sudo || echo maybesudo_)"
|
|
"$sudo" py -m pip install --upgrade --upgrade-strategy only-if-needed "$@"
|
|
}
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || pippy "$@"
|