mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 05:49:26 +00:00
feat(helper): add os-type helper functions
Add the following functions: - is-darwin - is-linux - is-bsd - is-cygwin And apply them everywhere I found code doing that what these functions do.
This commit is contained in:
committed by
Kaleb Elwert
parent
1b99be879c
commit
f4ca9ebfc9
@ -22,7 +22,7 @@ elif (( $+commands[pyenv] )); then
|
||||
else
|
||||
if [[ -n "$PYTHONUSERBASE" ]]; then
|
||||
path=($PYTHONUSERBASE/bin $path)
|
||||
elif [[ "$OSTYPE" == darwin* ]]; then
|
||||
elif is-darwin; then
|
||||
path=($HOME/Library/Python/*/bin(N) $path)
|
||||
else
|
||||
# This is subject to change.
|
||||
|
Reference in New Issue
Block a user