Skip to content

Commit 99469c4

Browse files
authored
Merge pull request #243 from andyrichardson/patch-1
Update tpm_not_working.md
2 parents fdb3022 + 8307a5f commit 99469c4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/tpm_not_working.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,18 @@ find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix
8585
8686
Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67)
8787

88-
This problem is because tmux's `run-shell` command runs a shell which doesn't read from user configs, thus tmux installed in `/usr/local/bin` will not be found.
88+
This problem is because tmux's `run-shell` command runs a shell which doesn't read from user configs, thus tmux installed in a brew prefix (e.g. `/usr/local/bin`) will not be found.
8989

90-
The solution is to insert the following line:
90+
The solution is to find your brew prefix
9191

92+
```sh
93+
> echo "$(brew --prefix)/bin"
94+
/opt/homebrew/bin
9295
```
93-
set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
96+
97+
And prepend it to the `PATH` environment variable
98+
```
99+
set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin"
94100
```
95101

96102
before any `run-shell`/`run` commands in `~/.tmux.conf`.

0 commit comments

Comments
 (0)