-
Notifications
You must be signed in to change notification settings - Fork 37
Uninstall
BlaCk_Void edited this page Jan 18, 2020
·
3 revisions
- Go back to Bash
sudo chsh -s $(which bash)
- Go back to Previous environment Zsh
If the previous configuration files(~/.zshrc
~/.zshenv
~/.zlogin
) exist, it will be backed up with the ".bak" file like ~/.zshrc.bak
.
If not, just clear configuration files.
- Uninstall
rm -rf $BVZSH ~/.zplugin
# remove source command from zsh
remove-bvzsh-sourced()
{
local file=$1
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "/BlaCk/d" $file
else
sed -i "/BlaCk/d" $file
fi
}
remove-bvzsh-sourced ~/.zsh
remove-bvzsh-sourced ~/.zshenv
remove-bvzsh-sourced ~/.zlogin