Add pyenv and direnv to bashrc, fix sourcing bashrc.local

This commit is contained in:
Evie Litherland-Smith 2023-03-02 10:21:33 +00:00
parent 466e5031ba
commit af338bd876

View file

@ -47,8 +47,12 @@ alias l='ls -CF'
command -v nvim > /dev/null 2>&1 && export EDITOR=nvim || export EDITOR=vi command -v nvim > /dev/null 2>&1 && export EDITOR=nvim || export EDITOR=vi
command -v xed > /dev/null 2>&1 && export VISUAL=xed || export VISUAL=vi command -v xed > /dev/null 2>&1 && export VISUAL=xed || export VISUAL=vi
if [ -d "$HOME/.bashrc.local" ] ; then if [ -f "$HOME/.bashrc.local" ] ; then
source "$HOME/.bashrc.local" source "$HOME/.bashrc.local"
fi fi
eval "$(starship init bash)" export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
command -v pyenv >/dev/null && eval "$(pyenv init -)"
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook bash)"
command -v starship > /dev/null 2>&1 && eval "$(starship init bash)"