1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +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 esac
done done
echo -e "Uninstalling from ${prefix} ...\n"
# UNINSTALL AUTOJUMP # UNINSTALL AUTOJUMP
sudo rm -rv ${prefix}/share/autojump/ # global / custom location installations
sudo rm -v ${prefix}/bin/jumpapplet if [[ -d "${prefix}/share/autojump/" ]]; then
sudo rm -v ${prefix}/bin/autojump echo -e "\nUninstalling from ${prefix} ...\n"
sudo rm -v ${prefix}/share/man/man1/autojump.1 sudo rm -rv ${prefix}/share/autojump/
sudo rm -v /etc/profile.d/autojump.zsh sudo rm -v ${prefix}/bin/jumpapplet
sudo rm -v /etc/profile.d/autojump.sh 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 # autocompletion file in the first directory of the FPATH variable
fail=true fail=true