Allow env to be reloaded

This commit is contained in:
Michael Campagnaro 2021-03-04 14:33:29 -05:00
parent 037b1a0aab
commit dfe47dea33
2 changed files with 8 additions and 7 deletions

View File

@ -42,11 +42,7 @@ abort() {
} }
reload() { reload() {
if [[ $platform == 'Linux' || $platform == 'Darwin' ]]; then test -f ~/.env.loader && . ~/.env.loader
test -f ~/.aliases && . ~/.aliases
else
test -f ~/.aliases && . ~/.aliases
fi
} }
update-shell() { update-shell() {

View File

@ -20,6 +20,11 @@ test -f "$HOME/.env.common-post" && . "$HOME/.env.common-post"
test -f "$HOME/.aliases" && . "$HOME/.aliases" test -f "$HOME/.aliases" && . "$HOME/.aliases"
test -f "$HOME/.aliases.common" && . "$HOME/.aliases.common" test -f "$HOME/.aliases.common" && . "$HOME/.aliases.common"
test -f "$HOME/.aliases.private" && . "$HOME/.aliases.private" test -f "$HOME/.aliases.private" && . "$HOME/.aliases.private"
test -d "$HOME/bin" && export PATH=$HOME/bin/:$PATH
test -d "$HOME/.dotfiles/bin" && export PATH=$HOME/.dotfiles/bin/:$PATH if [[ $_MC_SET_ENV_PATH -ne 1 ]]; then
test -d "$HOME/bin" && export PATH=$HOME/bin/:$PATH
test -d "$HOME/.dotfiles/bin" && export PATH=$HOME/.dotfiles/bin/:$PATH
fi
export _MC_SET_ENV_PATH=1