Skip to content

Instantly share code, notes, and snippets.

@baku89
Last active November 14, 2017 18:45
Show Gist options
  • Select an option

  • Save baku89/4560dc0018d8a94a3a8c to your computer and use it in GitHub Desktop.

Select an option

Save baku89/4560dc0018d8a94a3a8c to your computer and use it in GitHub Desktop.
Resuming web develpment environment from shell script (Sublime Text + Gulp)
# 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
#!/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