mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 03:25:42 +08:00
feat(pip): alias pip
to pip3
if pip is missing (#10431)
This commit is contained in:
parent
49bae43f62
commit
79531f7013
|
@ -82,7 +82,11 @@ zsh-pip-test-clean-packages() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
alias pip="noglob pip" # allows square brackets for pip command invocation
|
if (( $+commands[pip3] && !$+commands[pip] )); then
|
||||||
|
alias pip="noglob pip3"
|
||||||
|
else
|
||||||
|
alias pip="noglob pip"
|
||||||
|
fi
|
||||||
|
|
||||||
# Create requirements file
|
# Create requirements file
|
||||||
alias pipreq="pip freeze > requirements.txt"
|
alias pipreq="pip freeze > requirements.txt"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user