Created
January 12, 2020 15:14
-
-
Save valtyr/4b4e0be1b73abd391d8893e73f9f3d54 to your computer and use it in GitHub Desktop.
Setja upp algs4.jar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Byrjum á að búa til möppu til að geyma algs4.jar í:" | |
echo "$ mkdir $HOME/.algs4" | |
mkdir $HOME/.algs4 | |
echo "" | |
echo "Sækjum núna algs4.jar af netinu og geymum í möppunni:" | |
curl https://algs4.cs.princeton.edu/code/algs4.jar > $HOME/.algs4/algs4.jar | |
echo "" | |
echo "Síðast en ekki síst segjum við bash (skelinni þinni) að bæta algs4.jar við classpath-ið hjá þér:" | |
echo "$ echo \"export CLASSPATH=\$CLASSPATH:~/.algs4/algs4.jar\" > $HOME/.bashrc" | |
echo "export CLASSPATH=\$CLASSPATH:~/.algs4/algs4.jar" >> $HOME/.bashrc | |
echo "" | |
echo "Og núna ætti þetta bara að virka! 😍" | |
echo "(Þarft reyndar að keyra skipunina 'source ~/.bashrc' fyrst eða loka og opna terminal gluggann)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment