From b6b3fbfe5d1d3a2f8e298dec08fbf338c481f8a8 Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Wed, 8 Nov 2017 16:01:23 +1100 Subject: [PATCH] Fix init shell after installed --- tools/install.sh | 2 +- tools/uninstall.sh | 2 +- tools/upgrade.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 3548ed6..20ff6f1 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -84,7 +84,7 @@ export OSH=$OSH printf '%s\n' ' /____/ .... is now installed!' printf "%s\n" "Please look over the ~/.bashrc file to select plugins, themes, and options" printf "${BLUE}${BOLD}%s${NORMAL}\n" "To keep up on the latest news and updates, follow us on GitHub: https://github.com/ohmybash/oh-my-bash" - . $HOME/.bashrc + exec bash; source $HOME/.bashrc } diff --git a/tools/uninstall.sh b/tools/uninstall.sh index d41cd3a..6e4fdde 100755 --- a/tools/uninstall.sh +++ b/tools/uninstall.sh @@ -22,7 +22,7 @@ if [ -f $HOME/.bashrc.pre-oh-my-bash ] || [ -h $HOME/.bashrc.pre-oh-my-bash ]; t fi mv $HOME/.bashrc.pre-oh-my-bash $HOME/.bashrc; - . $HOME/.bashrc + exec bash; source $HOME/.bashrc echo "Your original bash config was restored. Please restart your session." else diff --git a/tools/upgrade.sh b/tools/upgrade.sh index 431837b..827bd81 100644 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -34,7 +34,7 @@ then printf '%s\n' ' /____/ ' printf "${BLUE}%s\n" "Hooray! Oh My Bash has been updated and/or is at the current version." printf "${BLUE}${BOLD}%s${NORMAL}\n" "To keep up on the latest news and updates, follow us on GitHub: https://github.com/ohmybash/oh-my-bash" - . $HOME/.bashrc + exec bash; source $HOME/.bashrc else printf "${RED}%s${NORMAL}\n" 'There was an error updating. Try again later?' fi