tmux-plugins / tpm

Tmux Plugin Manager
MIT License
12.32k stars 433 forks source link

'List of plugins' section is restricted to .tmux.conf file only??? #205

Open lloydngnn opened 3 years ago

lloydngnn commented 3 years ago

I'm using bash + tmux + tpm + 'tmux-fzf' plugin for tmux and I'm using 'oh my tmux' repo for tmux configuration files (.tmux.conf and .tmux.conf.local) If I put 'list of plugins' scripts into .tmux.conf =====> tmux-fzf works If I put 'list of plugins' scripts into .tmux.conf.local => tmux-fzf doesn't work

Here is my tpm scripts added to the bottom of my .tmux.conf.local file: set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.dotfiles/tmux/plugins' # ***** list of plugins ***** set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'sainnhe/tmux-fzf' # ***** end: list of plugins ***** run '~/.dotfiles/tmux/plugins/tpm/tpm'

Bogdan107 commented 2 years ago

Gentoo. Tmux config files are intalled into /etc/tmux/. Tmux main config - /etc/tmux.conf. Users have no ~/.tmux.conf or ~/tmux/ and use only system defined /etc/tmux.conf config.

$ cat /ect/tmux.conf
source-file /etc/tmux/main.conf
set -g @plugin "arcticicestudio/nord-tmux"

$ grep @plugin /etc/tmux/plugins.conf | grep -v "^#" 
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-copycat'

$ ls -1 /etc/tmux
keybindings.conf
main.conf
mouse.conf
plugins
plugins.conf
theme.conf

$ ls -1 /etc/tmux/plugins
nord-tmux
tmux-copycat
tmux-themepack
tpm

I have this after prefix + U:

Installed plugins:
  nord-tmux
  nord-tmux
Type plugin name to update it.
- "all" - updates all plugins
- ENTER - cancels

E.g.:

I will be happy, if tpm resolve all source-file directives from config file.