Fix init shell after installed
This commit is contained in:
parent
6dd590ba8b
commit
b6b3fbfe5d
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user