Closed zxdposter closed 2 years ago
My 2 cents, as I mentioned in https://github.com/gpakosz/.tmux/issues/61#issuecomment-308939495
I believe the way to go is to make _sourced_files()
understand if '[ -f foo ]' 'source foo'
lines in ~/.tmux.conf
. The test is needed because tmux < 2.3
doesn't understand source-file -q
Hey,
sorry for the late reply. I wouldn't go in a direction of modifying tpm
to support additional syntax.
Instead, I propose using alternate plugin definition described here: https://github.com/tmux-plugins/tpm/blob/master/docs/tpm_not_working.md
# List of plugins
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Using set -g @tpm_plugins ...
is guaranteed to work no matter how complicated source
commands are.
Please close this issue if you can verify it works and you agree with the approach. Thanks.
I using this config file https://github.com/gpakosz/.tmux.git
Has two file
.tmux.conf
.tmux.conf.local
, I want to keep.tmux.conf
original state, just only modify.tmux.conf.local
.Is good for maintaining its own configuration.
So I add this configuration.