Maybe this is a tmux issue more than a tpm issue? I am not sure, if I have all of my tpm setup in a file called ~/.tmux.conf.user, which gets sources from the main ~/.tmux.conf, then using 'if-shell' does not work, whereas sourcing directly does. TPM itself does get sourced and the keybindings work. It just does not think any plugins are installed. In other words:
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
run '~/.tmux/plugins/tpm/tpm'
Maybe this is a tmux issue more than a tpm issue? I am not sure, if I have all of my tpm setup in a file called ~/.tmux.conf.user, which gets sources from the main ~/.tmux.conf, then using 'if-shell' does not work, whereas sourcing directly does. TPM itself does get sourced and the keybindings work. It just does not think any plugins are installed. In other words:
This does NOT work:
~/.tmux.conf: if-shell '[ -f ~/.tmux.conf.user ]' 'source ~/.tmux.conf.user'
This DOES work:
~/.tmux.conf: source ~/.tmux.conf.user
My ~/.tmux.conf.user is simply:
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'nhdaly/tmux-scroll-copy-mode' run '~/.tmux/plugins/tpm/tpm'