Skip to content

Instantly share code, notes, and snippets.

@rosshadden
Created December 17, 2013 21:26
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 rosshadden/8012878 to your computer and use it in GitHub Desktop.
Save rosshadden/8012878 to your computer and use it in GitHub Desktop.
Open Unity3D scripts in Sublime Text, including line number support when clicking on errors. I wrote this for Unity running in wine in Linux to open the Linux-installed Sublime, but it would probably work on all platforms.
#!/usr/bin/env bash
# 1) Give this file +x permissions.
# 2) Replace MonoDevelop.exe with a symlink pointing to this file.
subl "$(echo $3 | sed 's|^Z:||' | sed 's|\\|/|g' | sed 's|;|:|')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment