Skip to content

Uninstall

BlaCk_Void edited this page Jan 18, 2020 · 3 revisions
  1. Go back to Bash sudo chsh -s $(which bash)

  2. 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.

  3. 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
Clone this wiki locally