tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.9k stars 417 forks source link

TPM did not launch addons, but installed them #226

Open bs0c opened 2 years ago

bs0c commented 2 years ago

I have:

set-environment -g XDG_CONFIG_HOME "$HOME/.config"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'samoshkin/tmux-plugin-sysstat'
set -g @plugin 'xamut/tmux-network-bandwidth'
run '~/.config/tmux/plugins/tpm/tpm'
set -g status-right "#{network_bandwidth} • #{sysstat_cpu} • #{sysstat_mem} • #{sysstat_loadavg}"

but I don't see add-ons on status-right. it is working if I run:

$XDG_CONFIG_HOME/tmux/plugins/tmux-network-bandwidth/tmux-network-bandwidth.tmux or $XDG_CONFIG_HOME/tmux/plugins/tmux-plugin-sysstat/sysstat.tmux

please help me =)

SOLUTION:

set-environment -g XDG_CONFIG_HOME "$HOME/.config/"
set-environment -g TMUX_PLUGIN_MANAGER_PATH "$XDG_CONFIG_HOME/tmux/plugins"

set -g @plugin 'tmux-plugins/tpm'
... some plugins ...
run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm'