Last active
November 14, 2017 18:45
-
-
Save baku89/4560dc0018d8a94a3a8c to your computer and use it in GitHub Desktop.
Resuming web develpment environment from shell script (Sublime Text + Gulp)
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
| # You have to exec below to make 'subl' command enabled. | |
| # (https://www.sublimetext.com/docs/3/osx_command_line.html) | |
| sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl |
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/sh | |
| BASEDIR=$(dirname $0) | |
| cd $BASEDIR | |
| PROJECT=$(ls | grep *.sublime-project) | |
| subl --project $PROJECT | |
| gulp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment