|
@ -1,6 +1,7 @@ |
|
|
sudo cp autojump /usr/bin/ |
|
|
sudo cp autojump /usr/bin/ |
|
|
sudo cp autojump.1 /usr/share/man/man1/ |
|
|
sudo cp autojump.1 /usr/share/man/man1/ |
|
|
if [ -d "/etc/profile.d" ]; then |
|
|
if [ -d "/etc/profile.d" ]; then |
|
|
|
|
|
sudo cp autojump.bash /etc/profile.d/ |
|
|
sudo cp autojump.sh /etc/profile.d/ |
|
|
sudo cp autojump.sh /etc/profile.d/ |
|
|
echo "Remember to add the line" |
|
|
echo "Remember to add the line" |
|
|
echo " source /etc/profile" |
|
|
echo " source /etc/profile" |
|
@ -13,11 +14,11 @@ else |
|
|
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 "" >> ~/.bashrc |
|
|
echo "" >> ~/.bashrc |
|
|
echo "#autojump" >> ~/.bashrc |
|
|
echo "#autojump" >> ~/.bashrc |
|
|
cat autojump.sh >> ~/.bashrc |
|
|
|
|
|
|
|
|
cat autojump.bash >> ~/.bashrc |
|
|
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 |
|
|
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 |
|
|
fi |
|
|
|
|
|
|
|
|
fi |