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

Update Homebrew bin path to use dynamic prefix #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ notification :terminal_notifier, app_name: "MyApp ::", activate: 'com.googlecode

You can override the binary path detection with an environment variable. This solves a problem where the default binary found by `which` is the Ruby gem version of `terminal-notifier`. This version is slow, especially in a Bundler environment.

In this scenario we would much rather use the version installed by Homebrew at `/usr/local/bin/terminal-notifier` which is noticeably faster.
In this scenario we would much rather use the version installed by Homebrew, which is noticeably faster.

This gem allows you to set an environment variable to explicitly specify the binary to use, like this:

```bash
export TERMINAL_NOTIFIER_BIN=/usr/local/bin/terminal-notifier
export TERMINAL_NOTIFIER_BIN=$(brew --prefix)/bin/terminal-notifier
```

_When using guard to monitor test results in TDD, speed is of the essence. Using the right binary can save a half second or more during each test run, which doesn't seem like much but makes a big difference in productivity._
Expand Down