1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Update: remove the source part.

Sourcing bash_profile inside shell script does not work as expected. We should source it outside the script manually.
See also: https://stackoverflow.com/questions/50156206/source-bash-profile-do-not-works-inside-a-bash-script
This commit is contained in:
jdhao 2020-03-17 17:04:25 +08:00 committed by GitHub
parent bffd6bac70
commit 0c0099c301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,11 +156,3 @@ git clone https://github.com/jdhao/nvim-config.git "$NVIM_CONFIG_DIR" \
if [[ "$ADD_TO_SYSTEM_PATH" = true ]]; then
echo "export PATH=\"$NVIM_DIR/bin:\$PATH\"" >> "$HOME/.bash_profile"
fi
#######################################################################
# Post processing #
#######################################################################
# Let PATH changes take effect
# shellcheck source=/dev/null
source "$HOME/.bash_profile"