Last active
December 16, 2018 15:44
-
-
Save darrenpmeyer/5e0015d286c16fc02cee945e726bdc42 to your computer and use it in GitHub Desktop.
Installing PyCharm Professional on Ubunutu
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
#!/usr/bin/env bash | |
## this script installs PyCharm Professional via umake on Ubuntu systems | |
## You can also use `snap install pycharm-professional` if you don't mind snap | |
# install umake if it doesn't yet exist | |
if ! which umake | |
then | |
# add the ubuntu-make (umake) repo and update local package caches | |
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make | |
sudo apt-get update | |
# install umake | |
sudo apt-get install ubuntu-make | |
fi | |
# now install pycharm pro; you can edit this to be just `pycharm` | |
# if you want to use the community edition | |
umake ide pycharm-professional | |
# set the 'pycharm' symlink to the homedir or ~/bin if that exists | |
link_loc="$HOME" | |
if [ -d ~/bin ] | |
then | |
link_loc="~/bin" | |
fi | |
# make a symlink to pycharm.sh | |
wd=$(pwd) | |
cd "$link_loc" | |
ln -s ~/.local/share/umake/ide/pycharm-professional/bin/pycharm.sh pycharm | |
cd "$wd" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment