Last active
January 21, 2016 15:36
-
-
Save osteele/7f53dce67ce2925f55e2 to your computer and use it in GitHub Desktop.
Install Sublime Text 3 and recommended packages for SoftDes2015.
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
#!/bin/bash -eu | |
# Usage: wget https://gist.githubusercontent.com/osteele/7f53dce67ce2925f55e2/raw/install-sublime.sh | bash | |
# Add the Sublime Text 3 (ST3) repository | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
# Update and upgrade your system: | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install some Git and Python packages. | |
# - Git is the version control system we will use this semester. | |
# - python-pip is a Python package installer. | |
# - python-tk is a GUI toolkit for Python. | |
sudo apt-get install git python-pip python-tk python-dev build-essential | |
# Install Jupyter notebook which you'll be using for pre-class exercises | |
sudo pip install path.py markupsafe jupyter singledispatch backports_abc certifi jsonschema | |
# Install Allen's Python package swampy. | |
sudo pip install swampy | |
# Install Sublime Text 3 (ST3) | |
sudo apt-get install sublime-text-installer | |
# Install Package Control package manager for ST3 | |
ST3_CONFIG=~/.config/sublime-text-3 | |
PC_DIR=$ST3_CONFIG/Installed\ Packages/Package\ Control.sublime-package | |
PC_FNAME=Package%20Control.sublime-package | |
mkdir -p "$PC_DIR" | |
curl -O https://sublime.wbond.net/$PC_FNAME | |
unzip -u $PC_FNAME -d "$PC_DIR" | |
rm $PC_FNAME | |
# Add the Anaconda and Floobits packages. When ST3 is launched, Package Control will install these. | |
mkdir -p $ST3_CONFIG/Packages/User | |
cat > $ST3_CONFIG/Packages/User/Package\ Control.sublime-settings <<EOF | |
{ | |
"installed_packages": | |
[ | |
"Anaconda", | |
"BracketHighlighter", | |
"Floobits", | |
"GitGutter", | |
"SublimeREPL", | |
] | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment