Allow env to be reloaded
This commit is contained in:
parent
037b1a0aab
commit
dfe47dea33
6
aliases
6
aliases
|
@ -42,11 +42,7 @@ abort() {
|
|||
}
|
||||
|
||||
reload() {
|
||||
if [[ $platform == 'Linux' || $platform == 'Darwin' ]]; then
|
||||
test -f ~/.aliases && . ~/.aliases
|
||||
else
|
||||
test -f ~/.aliases && . ~/.aliases
|
||||
fi
|
||||
test -f ~/.env.loader && . ~/.env.loader
|
||||
}
|
||||
|
||||
update-shell() {
|
||||
|
|
|
@ -20,6 +20,11 @@ test -f "$HOME/.env.common-post" && . "$HOME/.env.common-post"
|
|||
test -f "$HOME/.aliases" && . "$HOME/.aliases"
|
||||
test -f "$HOME/.aliases.common" && . "$HOME/.aliases.common"
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user