Skip to content

Instantly share code, notes, and snippets.

@looselytyped
Created July 20, 2017 03:44
Show Gist options
  • Save looselytyped/f90d0886684835179a43daae9c455b55 to your computer and use it in GitHub Desktop.
Save looselytyped/f90d0886684835179a43daae9c455b55 to your computer and use it in GitHub Desktop.
#!/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