Skip to content

Instantly share code, notes, and snippets.

@samhunta
Created June 22, 2017 05:51
Show Gist options
  • Save samhunta/ea7ed95ec9f1917a5f8ba00d930be232 to your computer and use it in GitHub Desktop.
Save samhunta/ea7ed95ec9f1917a5f8ba00d930be232 to your computer and use it in GitHub Desktop.
command -v nodemon > /dev/null || npm install -g nodemon
echo '@test.js' >> ~/.gitignore_global
echo 'function nw() { touch @test.js && open @test.js && nodemon @test.js $@ && rm -rf @test.js }' >> ~/.zshrc
source ~/.zshrc
echo 'nw installed\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment