From b968d8809edc460e971d2d592e169e26d30f60b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linas=20Ju=C5=A1kevi=C4=8Dius?= Date: Fri, 12 Jan 2018 23:53:14 +0200 Subject: [PATCH] Document another "tpm not working" edge case --- docs/tpm_not_working.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/tpm_not_working.md b/docs/tpm_not_working.md index 87d2998..f92a432 100644 --- a/docs/tpm_not_working.md +++ b/docs/tpm_not_working.md @@ -16,6 +16,16 @@ Related [issue #22](https://github.com/tmux-plugins/tpm/issues/22) - ZSH tmux plugin might be causing issues.
If you have it installed, try disabling it and see if `tpm` works then. +- Are you using `tmux` as a top level shell?
+ If `tmux` is the top level shell (not started from another shell) then the + environment during initialisation could be very minimal. For example, if your + `tmux` binary is under `/usr/local/bin` (as it is in macOS when installed with + Homebrew) then `tpm` will not find it since `/usr/local/bin` might not be in + the `$PATH`. A workaround would be to extend the `$PATH` manually in + `.tmux.conf` before loading `tpm`: + + set-environment -g "PATH" "/usr/local/bin:$PATH" +
> Help, I'm using custom config file with `tmux -f /path/to/my_tmux.conf`