Created
November 28, 2015 11:09
-
-
Save thecotne/2e4efc2e80e39d0a868b to your computer and use it in GitHub Desktop.
open sublime text project with fzf from terminal
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
#!/usr/bin/bash | |
proj="$(find ~/Projects/*.sublime-project -printf '%f\n' | awk 'match($0, /^(.+)\./, a) {print a[1]}' | fzf)" | |
if [ $proj ] | |
then | |
subl --project ~/Projects/$proj.sublime-project | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.sublime-project
files in one directorysubl-project
and magic will happen 🎉