1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

minor formatting changes

This commit is contained in:
William Ting 2011-12-23 00:58:29 -10:00
parent db4ad6f049
commit 33f8e442ab

View File

@ -16,7 +16,7 @@
#along with autojump. If not, see <http://www.gnu.org/licenses/>. #along with autojump. If not, see <http://www.gnu.org/licenses/>.
function show_help { function show_help {
echo "sudo ./install.sh [--prefix /usr/local]" echo "sudo ./install.zsh [--prefix /usr/local]"
} }
prefix=/usr prefix=/usr
@ -78,17 +78,17 @@ else
echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]" echo "Your distribution does not have a /etc/profile.d directory, the default that we install one of the scripts to. Would you like us to copy it into your ~/.zshrc file to make it work? (If you have done this once before, delete the old version before doing it again.) [y/n]"
read ans read ans
if [ ${#ans} -gt 0 ]; then if [ ${#ans} -gt 0 ]; then
if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then if [ $ans = "y" -o $ans = "Y" -o $ans = "yes" -o $ans = "Yes" ]; then
echo "" >> ~/.zshrc echo "" >> ~/.zshrc
echo "#autojump" >> ~/.zshrc echo "#autojump" >> ~/.zshrc
cat autojump.zsh >> ~/.zshrc cat autojump.zsh >> ~/.zshrc
echo "Done!" echo "Done!"
echo echo
echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump." echo "You need to source your ~/.zshrc (source ~/.zshrc) before you can start using autojump."
else
echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
fi
else else
echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!" echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
fi
else
echo "Then you need to put autojump.zsh, or the code from it, somewhere where it will get read. Good luck!"
fi fi
fi fi