Compare commits

...

3 Commits

Author SHA1 Message Date
Bruno Sutic 99469c4a9b
Merge pull request #243 from andyrichardson/patch-1
Update tpm_not_working.md
2023-02-27 13:59:27 +01:00
Andy Richardson 8307a5fe58
prepend > prefix 2023-02-26 19:21:30 +00:00
Andy Richardson 3709b62397
Update tpm_not_working.md 2023-02-26 19:18:12 +00:00
1 changed files with 9 additions and 3 deletions

View File

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