tpm icon indicating copy to clipboard operation
tpm copied to clipboard

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

Open brandoncordell opened this issue 4 years ago • 4 comments

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.

brandoncordell avatar Sep 16 '20 01:09 brandoncordell

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

bruno- avatar Sep 16 '20 08:09 bruno-

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 avatar Sep 27 '20 08:09 gpakosz

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

bruno- avatar Sep 28 '20 04:09 bruno-

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?

VietTralala avatar Dec 03 '20 20:12 VietTralala