grunt-notify icon indicating copy to clipboard operation
grunt-notify copied to clipboard

tmux support

Open frdmn opened this issue 9 years ago • 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

frdmn avatar Feb 19 '15 14:02 frdmn

Got the same issue here.

rnarian avatar Feb 20 '15 09:02 rnarian

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)

frdmn avatar Mar 09 '15 12:03 frdmn

Thanks man! :+1:

rnarian avatar Mar 09 '15 12:03 rnarian