osx Command Files
#!/bin/bash
cd "$(dirname "$0")"
. ~/.nvm/nvm.sh
nvm use stable && npm run dev
Then name that file “whatever.command”. When you double-click it, it’ll launch a terminal and run the command. I pop these in my dock for projects I’m always opening…