Add pyenv and direnv to bashrc, fix sourcing bashrc.local
This commit is contained in:
parent
466e5031ba
commit
af338bd876
8
.bashrc
8
.bashrc
|
@ -47,8 +47,12 @@ alias l='ls -CF'
|
|||
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
|
||||
|
||||
if [ -d "$HOME/.bashrc.local" ] ; then
|
||||
if [ -f "$HOME/.bashrc.local" ] ; then
|
||||
source "$HOME/.bashrc.local"
|
||||
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)"
|
||||
|
|
Loading…
Reference in a new issue