It may seem odd to use Mac OS’ own notifier ‚Growl‘ to report messages generated by gulp, simply because you will probably have your gulp server window open as a tmux pane, anyway.
I, however, prefer using the full screen when writing my CSS/HTML/js, so it comes in handy, when error notifications are taken care of by growl.
At first, tmux would not let me. It turned out, I had to upgrade from tmux 1.9 to 2.0 with
brew update && brew upgrade tmux.
Then it needed two more steps as suggested by rbf here:
1. Install reattach-to-user-namespace with
brew update && brew install reattach-to-user-namespace,
2. then add following lines to at the beginning of your ~/.tmux.conf file:
set -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL -l" .
Which results in this wonderful workflow:
Check out my gulpfile on github, where you’ll find growl notifications and lots of other useful stuff implemented.