Add configuration for python
This commit is contained in:
parent
19f2786398
commit
5df789c413
7 changed files with 108 additions and 0 deletions
|
|
@ -112,3 +112,27 @@ if _command_exists git; then
|
|||
alias gsua='git summary --all'
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# Make working with Python more convenient
|
||||
|
||||
alias py='python3'
|
||||
|
||||
ipy() {
|
||||
if command -v ipython >/dev/null 2>&1; then
|
||||
ipython "$@"
|
||||
else
|
||||
ipython3 "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
if _command_exists poetry; then
|
||||
alias pr='poetry run'
|
||||
fi
|
||||
|
||||
if _command_exists pyenv; then
|
||||
alias pyvenvs='pyenv virtualenvs --bare --skip-aliases'
|
||||
alias pyver='pyenv version'
|
||||
alias pyvers='pyenv versions --skip-aliases'
|
||||
alias pywhich='pyenv which'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue