Skip to content

Commit

Permalink
Merge pull request #243 from andyrichardson/patch-1
Browse files Browse the repository at this point in the history
Update tpm_not_working.md
  • Loading branch information
bruno- authored Feb 27, 2023
2 parents fdb3022 + 8307a5f commit 99469c4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/tpm_not_working.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,18 @@ find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix
Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67)

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.
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.

The solution is to insert the following line:
The solution is to find your brew prefix

```sh
> echo "$(brew --prefix)/bin"
/opt/homebrew/bin
```
set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"

And prepend it to the `PATH` environment variable
```
set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin"
```

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

0 comments on commit 99469c4

Please sign in to comment.