add dynamic fpath for zsh installations back

pull/104/head
William Ting 12 years ago
parent 5213506d3c
commit 80c681c07f

@ -117,7 +117,10 @@ if [ ! ${local} ]; then
# install _j to the first accessible directory
if [ ${shell} == "zsh" ]; then
success=
cp -v _j /usr/local/share/zsh/site-functions/ && success=true
fpath=`/usr/bin/env zsh -c 'echo $fpath'`
for f in ${fpath}; do
cp -v _j ${f} && success=true && break
done
if [ ! ${success} ]; then
echo

@ -73,14 +73,22 @@ if [ -d "${prefix}/share/autojump/" ]; then
sudo rm -v ${prefix}/bin/autojump
sudo rm -v ${prefix}/share/man/man1/autojump.1
sudo rm -v /etc/profile.d/autojump.sh
sudo rm -v /usr/local/share/zsh/site-functions/_j
if [ -f /etc/profile.d/autojump.bash ]; then
sudo rm -v /etc/profile.d/autojump.bash
remove_msg "global" "bash"
fi
if [ -f /etc/profile.d/autojump.zsh ]; then
sudo rm -v /etc/profile.d/autojump.zsh
fpath=`/usr/bin/env zsh -c 'echo $fpath'`
for f in ${fpath}; do
if [[ -f ${f}/_j ]]; then
sudo rm -v ${f}/_j
fi
done
remove_msg "global" "zsh"
fi
fi

Loading…
Cancel
Save