Skip to content

Instantly share code, notes, and snippets.

@kernelsmith
Last active December 15, 2015 18:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kernelsmith/5308291 to your computer and use it in GitHub Desktop.
Save kernelsmith/5308291 to your computer and use it in GitHub Desktop.
useful sublime text 2 plugins
1) Install package control in sublime: http://wbond.net/sublime_packages/package_control/installation. For the impatient:
a) Ctl-` (control backtick, might be command-backtick for macsters)
b) Paste the following:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
c) Hit enter
d) Restart sublime
2) Install the git package (https://github.com/kemayo/sublime-text-2-git/wiki):
a) Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
b) Select "Package Control: Install Package" (it'll take a few seconds)
c) Select Git when the list appears (repeat for other git packages if desired, see #4)
3) Install various cool things by pointing sublime to github repos and then installing as a package:
a) Reference http://wbond.net/sublime_packages/package_control/usage for more on this process
b) Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
c) Type repo
d) Find and click "Package Control: Add Repository"
e) Paste github (etc) URL & hit enter
f) Bring up the Command Palette again (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
g) Type "install" and select "Package Control: Install Package"
h) Wait for the packages to populate if necessary
i) Type some letters of the package you added via step 3e, select it
j) self.bask_in("glory")
4) Some awesomeness for your consideration
via regular package install:
* git (obviously)
* githubtools # if you use github
* gitconfig
* TrailingSpaces
* gotolastedit
* SublimeCodeIntel # I think this is a regular pkg, but it's also on github below
via github (add repo, then install package):
* https://github.com/CraigWilliams/BeautifyRuby
* https://github.com/facelessuser/ApplySyntax
* https://github.com/SublimeText/RSpec # if you use RSpec
* https://github.com/edgar/RubyCheckOnSave # if you use Ruby alot
* https://github.com/kernelsmith/TidyOnSave # if you code for Metasploit alot
* https://github.com/SublimeCodeIntel/SublimeCodeIntel # <-- I believe this is also a regular package
5) Other awesomesauce
* Install a sweet font for development.
- Download it: https://github.com/adobe/source-code-pro/archive/master.zip
- Install by following the directions from the link on the page below
https://github.com/adobe/source-code-pro by clicking on the Linux/Unix install directions,
I.E. here https://github.com/adobe/source-code-pro/issues/17#issuecomment-8967116.
- Summarizing those directions: unzip and double click the OTF files, or mass select them and right
click and say open, then click install for each one, OR make sure to unzip them to
~/.fonts (for user only install) or /usr/share/fonts/opentype (for system-wide install) and then
run sudo fc-cache -f
6) TODO: Save and config manage preferences/config files. Make sure that includes git repo locations
etc. Find a way to automatically pull the repos as needed as well as install packages or to
bundle up the entire packages directory etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment