Watch
1
0
Fork
You've already forked dotfiles
0

Add configuration for python

This commit is contained in:
Alexander Hess 2026-08-03 04:00:21 +02:00
commit 5df789c413
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
7 changed files with 108 additions and 0 deletions

View file

@ -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