6adc132072
drop useless EXTRACT_SUFX, define LICENSE (GPLv3), sort the knobs, etc. - Do not patch ./install.zsh file; it is nearly identical to ./install.sh except for the _f file, which can be installed separately (do so) - Stagify, use OPTIONS helpers, trim superfluous whitespace here and there
15 lines
334 B
Bash
15 lines
334 B
Bash
#!/bin/sh
|
|
|
|
case $2 in
|
|
POST-DEINSTALL)
|
|
rm -f /etc/profile.autojump
|
|
rm -f /etc/zshrc.autojump
|
|
# delete the source (.) line from the /etc/profile and /etc/zshrc
|
|
if [ -f /etc/profile ] ; then
|
|
sed -i '' -e '/profile.autojump/d' /etc/profile
|
|
fi
|
|
if [ -f /etc/zshrc ] ; then
|
|
sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
|
|
fi
|
|
;;
|
|
esac
|