Skip to content

Instantly share code, notes, and snippets.

@metakeule
Created February 29, 2012 10:55
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 metakeule/1939963 to your computer and use it in GitHub Desktop.
Save metakeule/1939963 to your computer and use it in GitHub Desktop.
here a simple wrapper script to start sublime text 2 and include environment variables under ubuntu
#!/bin/bash
# make it executable and symlink /usr/bin/subl to it
# don't source .bashrc since it won't work (I guess it makes sure it's only source once in the system)
source /home/yourname/.bash_env # put your env variables into this file and source it in .bashrc too, if you need them somewhere else
exec "$(dirname "$(readlink -f "$0")")/sublime_text";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment