zim_remove 449 B

12345678910111213
  1. #
  2. # zim_remove - removes zim from the system
  3. #
  4. # Note: this doesn't remove _everything_. It removes as much as
  5. # possible while maintaining safety (don't delete custom user content).
  6. #
  7. sed '/# Source zim/,/fi/d' ${ZDOTDIR:-${HOME}}/.zshrc
  8. sed '/# The following code helps/,/) &!/d' ${ZDOTDIR:-${HOME}}/.zlogin
  9. rm -f ${ZDOTDIR:-${HOME}}/.zimrc
  10. # not forcing this one, as it is recursive. It's possible something went wrong.
  11. rm -r ${ZIM_HOME}