mikaelbr/gulp-notify

Doesn't work under Tmux

Opened this issue · 2 comments

Hi there,

As per issue #70, gulp-notify doesn't work under tmux correctly. According to that issue, it's because of terminal-notifier not handling it properly, gulp-notify uses I assume? I've updated to the latest gulp-notify, but the issue still exists despite terminal-notifier reporting it as fixed: julienXX/terminal-notifier#115

Any ideas?

Edit:
Actually, I've found how to fix it -- for those using Tmux on OS X, you'll need to run brew up && brew install reattach-to-user-namespace, then add this line to your ~/.tmux.conf file:

set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL"

I found instructions from here: dylang/grunt-notify#92

node-notifier should use v1.6.2 (from node-notifier@4.1.2), so if the tmux issue is fixed it should work as expected, but there might be something messing it up. What version are you using both of gulp-notify and node-notifier?

+1 Me too
node v4.2.1
npm v3.3.9
node-notifier@4.3.1
gulp-notify@2.2.0

I'm on OS X using Tmux through iterm2