Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A shell script to open the first .sublime-project file found searching from your current folder to the root. Similar to how ant searches for a build.xml file.
while [ "$x" != "/" ] && [ -z "$y" ] ; do
y=$(find "$x" -maxdepth 1 -name .sublime\-project)
if [ -n "$y" ];then
echo "$y"
subl --project "$y"
x=`dirname "$x"`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment