Closed ghost closed 3 years ago
+1 @bruno- I was about to file this, it would be quite helpful to make a last minute override of some of the plugin configs.
I would recommend adding a post_tpm_hook like I have requested for .tmux: https://github.com/gpakosz/.tmux/issues/511. Then if user wants to override something at the last moment, they can put that in that script. Also, this would be a minimal change for tpm, and overriding all/any plugin will be possible.
Yes, running tpm
at the last line in .tmux.conf
means any plugin can change user config.
If you're concerned about a plugin changing something you don't want you should review plugins' code. All plugins are open source so you can always fork and make changes to plugins.
As for post_tpm_hook
: just put code after run '~/.tmux/plugins/tpm/tpm'
in .tmux.conf
.
Yes, run '~/.tmux/plugins/tpm/tpm'
should be the last line in .tmux.conf
, but it doesn't have to be if you know what you're doing.
Does tpm placement at the very bottom means that plugins always override user configuration? Is there a way to make sure user configuration isn't override?