Unverified Commit 79531f70 authored by Carlo Sala's avatar Carlo Sala Committed by GitHub

feat(pip): alias `pip` to `pip3` if pip is missing (#10431)

parent 49bae43f
......@@ -82,7 +82,11 @@ zsh-pip-test-clean-packages() {
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
alias pipreq="pip freeze > requirements.txt"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment