1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 17:25:23 +02:00

[bash] bash_environment, load direnv configuration if it exists

This commit is contained in:
Hyacinthe Cartiaux 2020-05-13 18:24:09 +02:00
parent c1d0f76e9a
commit 1b461e077a

View file

@ -164,7 +164,6 @@ alias cdgp='cd $GPUPPET_PREFIX/repo && source setup_env.sh && echo "==> Grid5000
# Ruby & RVM
# -------------------------------------------------------------------
[ -d "/usr/lib/ruby/gems" ] && export PATH="$PATH:$(echo /usr/lib/ruby/gems/*)/bin"
[ -d "$HOME/.rvm/bin" ] && export PATH="$PATH:$HOME/.rvm/bin"
@ -175,3 +174,9 @@ if [[ $(which ruby 2>/dev/null | grep -c "$HOME/.rvm") != 0 ]]; then
rvm reset
fi
# -------------------------------------------------------------------
# direnv
# -------------------------------------------------------------------
[[ -e "$HOME/.config/direnv/init.sh" ]] && . $HOME/.config/direnv/init.sh || true