Last active
February 24, 2020 17:52
-
-
Save shaybensasson/4e0d8768ce3a11c1d64d149b296d75c8 to your computer and use it in GitHub Desktop.
PyCharm update script.
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # --------------------------------------------------------------------- | |
| # PyCharm update script. | |
| # --------------------------------------------------------------------- | |
| #Originally from here: | |
| #http://exponential.io/blog/2015/02/10/install-pycharm-on-ubuntu-linux/ | |
| VER=2019.3.3 | |
| FILE_NO_EXT=pycharm-professional-$VER | |
| DIR_CREATED=pycharm-$VER #this dir is the root dir inside the archive | |
| mv ~/Downloads/Compressed/$FILE_NO_EXT.tar.gz ~/opt/packages/pycharm/ | |
| tar xvzf ~/opt/packages/pycharm/$FILE_NO_EXT.tar.gz -C ~/opt/packages/pycharm/ | |
| rm ~/opt/pycharm #remove soft link | |
| ln -s ~/opt/packages/pycharm/$DIR_CREATED ~/opt/pycharm | |
| cp ~/opt/pycharm/bin/pycharm.sh ~/opt/pycharm/bin/pycharm.sh.bak | |
| echo " " | |
| echo " " | |
| echo "Paste these lines before 'Run the IDE.' section in '~/opt/pycharm/bin/pycharm.sh':" | |
| echo "# ---------------------------------------------------------------------" | |
| echo "# DL cuda stuff" | |
| echo "# ---------------------------------------------------------------------" | |
| echo "source /home/shay/DL_cuda_stuff.sh" | |
| echo " " | |
| echo " " | |
| echo "For convinience you can take a look at Fav icon:" | |
| echo "subl ~/Launcher/jetbrains-pycharm.desktop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment