Skip to content

Instantly share code, notes, and snippets.

@darrenpmeyer
Last active December 16, 2018 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenpmeyer/5e0015d286c16fc02cee945e726bdc42 to your computer and use it in GitHub Desktop.
Save darrenpmeyer/5e0015d286c16fc02cee945e726bdc42 to your computer and use it in GitHub Desktop.
Installing PyCharm Professional on Ubunutu
#!/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