tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.95k stars 420 forks source link

TPM doesn't run from separate config sourced inside of .tmux.conf #181

Open brandoncordell opened 4 years ago

brandoncordell commented 4 years ago

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.

bruno- commented 4 years ago

This is currently not supported. If someone wants to address this PRs are welcome.

gpakosz commented 3 years ago

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.

bruno- commented 3 years ago

@gpakosz yea, supporting source -q seems like a better idea.

VietTralala commented 3 years ago

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?