-
Notifications
You must be signed in to change notification settings - Fork 38
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.
# 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
- Uninstall
rm -rf $BVZSH ~/.zplugin
## If you use customize.
rm ~/.zplugins # custom plugin file
rm ~/.ztheme # custom theme file