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

iterm2 support #147

Closed
mooreniemi opened this issue Oct 29, 2015 · 13 comments
Closed

iterm2 support #147

mooreniemi opened this issue Oct 29, 2015 · 13 comments
Labels

Comments

@mooreniemi
Copy link

see also: #80

terminal-notifier -title "RSPEC" -message "⚑ Tests done."

Works in the terminal directly, but if I use "Run command..." in iTerm2 triggers, it doesn't work. I confirmed the trigger was firing correctly (used text highlight to check).

I'm on Yosemite 10.10.5.

@julienXX
Copy link
Owner

julienXX commented Nov 5, 2015

I'm not an iTerm user so I won't be able to help here. Sorry.

@mooreniemi
Copy link
Author

@julienXX any other collaborators available? if not, feel free to just close this and i'll assume it'll remain unsupported. (i could try to take a look myself but this is a bit outside my wheelhouse :))

@julienXX
Copy link
Owner

julienXX commented Nov 5, 2015

I'll leave it opened in case someone has an answer.

@semikolon
Copy link

Did you try referencing the binary with the exact path? /usr/local/bin/terminal-notifier or such?

@shigemk2
Copy link

Me neither. My environments are

  • Mac OSX Yosemite
  • iTerm2 2.1.4
  • terminal-notifier's path is /usr/local/bin/terminal-notifier

When executing sample command in README, command freezes and I didn't have any results.

$ echo 'Piped Message Data!' | terminal-notifier -message 'Check your Apple stock!'
// Freezing...

@msaspence
Copy link

I tried referencing the exact path and sent the exit code to a txt file and get 127

@dnakagome
Copy link

+1 for @semikolon

Giving the exact path in "Parameters" for "Run Command..." triggers terminal-notifier perfectly.

I'm using El Capitan though.

My environments are:

  • OS X El Capitan 10.11.2
  • iTerm2 2.1.4
  • terminal-notifier 1.6.3

@guidoschmidt
Copy link

Try using the ruby gem - works for me using iTerm2 on OS X 10.11.3

@ssbarnea
Copy link

You can close the bug, I tested and echo "msg" | terminal-notifier works perfectly.

Also, for your information iTerm3 has a trigger named Post Notification, which does this without even needing this wrapper.

@ciudilo
Copy link

ciudilo commented Mar 30, 2016

@ssbarnea does not work in iTerm2 on OS X 10.11.4

@theoretick
Copy link

theoretick commented May 23, 2016

I too am having issues with this. I wanted more granularity then Post Notification provides so I've tested with terminal-notifier and osx-notifier without success. Not sure what the issue is, but I have successfully used apple script:
osascript -e 'display notification "Tests Passed" with title "Terminal"'.

As you can see from my example what I'd really like is to trigger a different icon (reporting app? i'm unfamiliar with how notifications work) so I can easily see a success/failure. With osx-notifier I would do something like:
osx-notifer --type=pass --message="Specs Passed"
or
osx-notifer --type=fail --message="Specs Failed: \1 failures" (with trigger capture groups).

@williscool
Copy link

@ciudilo @theoretick

thanks to @semikolon

I figured it out.

You have to use the full path to the executable in the "Run Command" trigger

i.e.

/usr/local/bin/terminal-notifier -title 'Notification Title' -subtitle 'Server Ready'

@julienXX
Copy link
Owner

Closing the issue, feel free to re-open if needed.

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

No branches or pull requests