-
-
Save knowuh/c26cb8732f68c9522476 to your computer and use it in GitHub Desktop.
Open the current directory with subl (sublime text) -- optionally using a project file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Chmod this u+x and put it in your $PATH | |
# Open the first .sublime-project or the working dir | |
# in SublimeText assumes that `subl` is in your path | |
for f in ./*.sublime-project; do | |
if [ -e "$f" ] | |
then | |
subl --project "$f" | |
else | |
subl . | |
fi | |
break | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment