mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
tools/uninstall: Remove "chsh -s /bin/bash"
The code is originated from the uninstallation script for ohmyzsh, which switches the default shell from Bash to Zsh in its installation. Oh-my-bash does not change the default shell in its installation, so there is no need to change it back to /bin/bash in the uninstallation.
This commit is contained in:
@ -25,13 +25,6 @@ if [ -f ~/.bashrc.pre-oh-my-bash ] || [ -h ~/.bashrc.pre-oh-my-bash ]; then
|
||||
exec bash; source ~/.bashrc
|
||||
|
||||
echo "Your original bash config was restored. Please restart your session."
|
||||
else
|
||||
if hash chsh >/dev/null 2>&1; then
|
||||
echo "Switching back to bash"
|
||||
chsh -s /bin/bash
|
||||
else
|
||||
echo "You can edit /etc/passwd to switch your default shell back to bash"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Thanks for trying out Oh My Bash. It has been uninstalled."
|
||||
|
Reference in New Issue
Block a user