Skip to content

Commit 0927aed

Browse files
committed
Adds info about setting $PATH in readme
1 parent e21c181 commit 0927aed

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,29 @@ Install
1313

1414
```bash
1515
composer global require davidrjonas/composer-lock-diff:^1.0@dev
16+
17+
# With zsh, do `rehash` to make it known to the shell.
18+
19+
# If `composer-lock-diff` is not found, make sure ~/.composer/vendor/bin is in your `$PATH` env variable.
20+
# You'll need to restart your shell if you make this change.
21+
echo 'PATH=$PATH:$HOME/.composer/vendor/bin' >> ~/.profile
1622
```
1723

1824
Or just copy the 'composer-lock-diff' to `/usr/local/bin`.
1925

26+
### zsh
27+
28+
If you're running zsh and you need to add `~/.composer/vendor/bin` to your
29+
PATH, use the command above but add the following to `.zprofile`. This will
30+
keep everything working in sh, bash, and zsh. See
31+
https://superuser.com/questions/187639/zsh-not-hitting-profile
32+
33+
```
34+
emulate sh
35+
. ~/.profile
36+
emulate zsh
37+
```
38+
2039
Usage
2140
=====
2241

0 commit comments

Comments
 (0)