1
0
Fork 0
mirror of synced 2024-11-22 23:35:35 -05:00
zimfw/tools/zim_remove

14 lines
463 B
Text
Raw Normal View History

2016-05-14 18:22:04 -04:00
#
# 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 ${ZDOTDIR:-${HOME}}/.zim/