solution to the problem 'tpm returned 127'

See issue #67 for more discussion
This commit is contained in:
Shou Ya 2017-08-02 12:09:05 +08:00 committed by GitHub
parent c8ac32a085
commit e51a3772b5
1 changed files with 16 additions and 0 deletions

View File

@ -78,3 +78,19 @@ subdirectories):
find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix
<hr />
> '~/.tmux/plugins/tpm/tpm' returned 127 (on macOS, w/ tmux installed using brew)
Related: [issue #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.
The solution is to insert the following line:
set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
before any `run-shell`/`run` commands in `~/.tmux.conf`.