Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

tmux support #92

Open
frdmn opened this issue Feb 19, 2015 · 3 comments
Open

tmux support #92

frdmn opened this issue Feb 19, 2015 · 3 comments

Comments

@frdmn
Copy link

frdmn commented Feb 19, 2015

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
Copy link

rnarian commented Feb 20, 2015

Got the same issue here.

@frdmn
Copy link
Author

frdmn commented Mar 9, 2015

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))

@rnarian
Copy link

rnarian commented Mar 9, 2015

Thanks man! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants