Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifier, tmux set -g affects all tmux sessions globally, solution: remove -g #361

Closed
scmx opened this issue Nov 9, 2012 · 1 comment
Closed

Comments

@scmx
Copy link

scmx commented Nov 9, 2012

https://github.com/guard/guard/blob/master/lib/guard/notifiers/tmux.rb

tmux set -g #{ color_location }

Having it like this incorrectly targets all tmux sessions,
it should only target the one that guard runs inside, like this:

tmux set #{ color_location }

I was trying to make the window (tab) with guard in it (in my case number 0) get colored instead of status-left-bg

:color_location => '-w -t 0 window-status-bg'

But this combined with set -g incorrecty targets all windows in all sessions.

How to reproduce:

  1. Open up two terminals, start up tmux in both of them and then guard in one of them.
  2. Change a watched file so that a notification appears.
  3. Both tmux sessions now have a colored status-left-bg
@netzpirat
Copy link
Contributor

Thanks a lot for reporting. We'll release a new Guard version this week...

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

No branches or pull requests

2 participants