Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brandoncordell opened this issue Sep 16, 2020 · 4 comments
Open

Comments

@brandoncordell
Copy link

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-
Copy link
Member

bruno- commented Sep 16, 2020

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

@gpakosz
Copy link
Contributor

gpakosz commented Sep 27, 2020

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-
Copy link
Member

bruno- commented Sep 28, 2020

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

@VietTralala
Copy link

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?

yjyao added a commit to yjyao/dotfiles that referenced this issue Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants