Skip to content

Commit 2ab1d91

Browse files
authored
Merge pull request tmux-plugins#115 from shouya/patch-1
solution to the problem 'tpm returned 127'
2 parents 42bb2bf + e51a377 commit 2ab1d91

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/tpm_not_working.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,19 @@ subdirectories):
7878
```bash
7979
find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix
8080
```
81+
82+
<hr />
83+
84+
> '~/.tmux/plugins/tpm/tpm' returned 127 (on macOS, w/ tmux installed using brew)
85+
86+
Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67)
87+
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.
89+
90+
The solution is to insert the following line:
91+
92+
```
93+
set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
94+
```
95+
96+
before any `run-shell`/`run` commands in `~/.tmux.conf`.

0 commit comments

Comments
 (0)