install script modified in order for autojump to install correctly OS X

pull/18/head
Cloudera Training 14 years ago
parent c533b2b4fd
commit 1fc107ad38

@ -36,6 +36,11 @@ else
echo "" >> ~/.bashrc echo "" >> ~/.bashrc
echo "#autojump" >> ~/.bashrc echo "#autojump" >> ~/.bashrc
cat autojump.bash >> ~/.bashrc cat autojump.bash >> ~/.bashrc
OS=`uname`
if [ $OS == 'Darwin' ]; then
echo "# Get the aliases and functions"
echo "\nif [ -f ~/.bashrc ]; then\n . ~/.bashrc\nfi" >> ~/.bash_profile
fi
else else
echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!" echo "Then you need to put autojump.sh, or the code from it, somewhere where it will get read. Good luck!"
fi fi

Loading…
Cancel
Save