1
0
Fork 0
mirror of synced 2024-06-02 15:21:11 -04:00
zimfw/tools/zim_remove
Thiago Kenji Okada 3e60ae9950 init.zsh: Allow arbitrary ZIM location
This change allow arbitrary ZIM location path by setting a new
environment variable, ZIM_PATH. If the user does not set it, ZIM falls
back to the old "${ZDOTDIR:-${HOME}}/.zim" location.
2017-08-12 01:07:52 +00:00

14 lines
449 B
Plaintext

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