tpm
tpm copied to clipboard
TPM doesn't run from separate config sourced inside of .tmux.conf
I use Thoughtbot's dotfiles to manage all my dotfiles. All of the default configs from their dotfiles look for and source a local version. So at the bottom of .tmux.conf
there is
# Local config
if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'
Adding the plugins and run ~/.tmux/plugins/tpm/tpm
inside of .tmux.conf.local
does not work. The install says it's complete and to hit Enter but hitting Enter does nothing. The plugins don't get downloaded at all.
This is currently not supported. If someone wants to address this PRs are welcome.
Hey @brandoncordell 👋
I suggest you use source -q
instead.
@bruno- I'm not sure it's feasible to support the if-shell
pattern. The way I see things, it means tpm should understand that the if-shell
line really corresponds to "if the file exists, then source it" which can be expressed in so many different ways. That's why I wanted tpm to support source -q
in the first place, which is the way to go since tmux 2.3
for that exact need.
@gpakosz yea, supporting source -q
seems like a better idea.
If I run tmux -f /path/to/custom/config
it seems that no plugins are loaded as well. Is the issue the same as in the above stated situation?