Skip to content

Instantly share code, notes, and snippets.

@imjared
Created October 16, 2013 16:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imjared/7010577 to your computer and use it in GitHub Desktop.
Save imjared/7010577 to your computer and use it in GitHub Desktop.
Add to /usr/local/bin. Use `lime [path]` instead of `subl [path]` to open sublime projects. If a project file exists it opens and preserves project settings. Requires `subl`. In response to http://www.sublimetext.com/forum/viewtopic.php?f=3&t=14129
#!/bin/bash
projectFile=$(find $1 -name "*.sublime-project" -maxdepth 1)
echo $projectFile
if [ $projectFile ]
then
subl $projectFile
else
subl $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment