dylang/grunt-notify

tmux support

frdmn opened this issue · 3 comments

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

Got the same issue here.

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 julienXX/terminal-notifier#115 (comment))

Thanks man! 👍