dylang / grunt-notify

Automatic Notifications when Grunt tasks fail.
https://npmjs.org/package/grunt-notify
MIT License
921 stars 73 forks source link

tmux support #92

Open frdmn opened 9 years ago

frdmn commented 9 years ago

Hello,

whenever I am in a tmux session, the grunt-notify notifications are not shown anymore by terminal-notifier.

I'm using the latest grunt-notify version and tmux 1.9a on OS X 10.10.2.

I already found issue #88, where @scottwio struggled with the same issue, however I am not sure how reattach-to-user-namespace is related to this.

Perhaps some of you have an idea what's going on here.

Thanks in advance, Jonas

rnarian commented 9 years ago

Got the same issue here.

frdmn commented 9 years ago

Okay, just found out...

  1. You need reattach-to-user-namespace for whatever reasons. (brew install reattach-to-user-namespace)
  2. Add the following in your ~/.tmux.conf:
    set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL"

Not sure why, but it's working fine.

(via https://github.com/alloy/terminal-notifier/issues/115#issuecomment-71874815)

rnarian commented 9 years ago

Thanks man! :+1: