Fixed environment configuration to source Bash resource

Once the `.bashrc` file has been created, immediately load it so
contents are executed instead of duplicating this work on a separate
line.
This commit is contained in:
Brooke Kuhlmann
2021-03-14 16:11:32 -06:00
parent be9edafe52
commit b8d96b3479

View File

@@ -121,8 +121,7 @@ configure_environment() {
if [[ ! -s "$HOME/.bashrc" ]]; then
printf "%s\n" 'export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"' > "$HOME/.bashrc"
source "$HOME/.bashrc"
fi
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/opt/homebrew/sbin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
}
export -f configure_environment