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
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ export DOTFILES_DIR="$XDG_DATA_HOME/dotfiles" # also set in ~/.local/bin/instal
|
|||
export EDITOR=vim
|
||||
export GPG_TTY=$(tty)
|
||||
export PAGER="less --chop-long-lines --ignore-case --LONG-PROMPT --no-init --status-column --quit-if-one-screen"
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export TZ="Europe/Berlin"
|
||||
export VISUAL=$EDITOR
|
||||
|
||||
|
|
@ -39,4 +40,7 @@ fi
|
|||
export BAT_CONFIG_PATH="$XDG_CONFIG_HOME/bat/config"
|
||||
export LESSHISTFILE="$XDG_STATE_HOME/less/history"
|
||||
export PSQLRC="$XDG_CONFIG_HOME/psql/psqlrc"
|
||||
export PYENV_ROOT="$XDG_DATA_HOME/pyenv"
|
||||
export PYTHON_HISTORY="$XDG_STATE_HOME/python/history"
|
||||
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py"
|
||||
export VIMINIT='let $MYVIMRC="'"$XDG_CONFIG_HOME"'/vim/vimrc" | source $MYVIMRC'
|
||||
|
|
|
|||
Loading…
Reference in a new issue