dotfiles/dot_bashrc.d/python.bashrc.tmpl
2022-11-07 13:31:30 +01:00

19 lines
405 B
Cheetah

# python
# pyenv
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH" # if `pyenv` is not already on PATH
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
if [ -d "$HOME/.poetry/bin" ]; then
export PATH="$HOME/.poetry/bin:$PATH"
fi
if [ -f "{{ .extra_ca_cert }}" ]; then
export REQUESTS_CA_BUNDLE={{ .extra_ca_cert }}
fi