1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 22:10:45 +00:00

Merge pull request #93 from wting/zsh-uninstall-local

zsh uninstall: check for local installs to remove
This commit is contained in:
Joel Schaerer 2012-02-07 22:56:38 -08:00
commit 31c85155d1

View File

@ -38,15 +38,24 @@ while true; do
esac
done
echo -e "Uninstalling from ${prefix} ...\n"
# UNINSTALL AUTOJUMP
# global / custom location installations
if [[ -d "${prefix}/share/autojump/" ]]; then
echo -e "\nUninstalling from ${prefix} ...\n"
sudo rm -rv ${prefix}/share/autojump/
sudo rm -v ${prefix}/bin/jumpapplet
sudo rm -v ${prefix}/bin/autojump
sudo rm -v ${prefix}/share/man/man1/autojump.1
sudo rm -v /etc/profile.d/autojump.zsh
sudo rm -v /etc/profile.d/autojump.sh
fi
# local installations
if [[ -d ~/.autojump/ ]]; then
echo -e "\nUninstalling from ~/.autojump/ ...\n"
rm -rv ~/.autojump/
fi
# autocompletion file in the first directory of the FPATH variable
fail=true