in my tmux.conf I want to incorperate a reminder to install 'tmux plugin manager' if it isn't already installed.
Therefore I came up with this in my tmux.conf:
if-shell '[ ! -d "$HOME/.tmux/plugins/tpm" ]' \
"display-message -p 'TMUX PLUGIN MANAGER is not installed\n Install with: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'"
When now starting tmux, without the plugin manager installed I get this:
/home/user/.tmux.conf:95: no current target
'~/.tmux/plugins/tpm/tpm' returned 127
It seems to me the issue here is, that I try to display a notification before I'm attached to a session, which could display the message.
Are there any known workarounds or alternatives for this?