tpm icon indicating copy to clipboard operation
tpm copied to clipboard

TPM did not launch addons, but installed them

Open bs0c opened this issue 3 years ago • 0 comments

I have:

  • tmux-3.2a
  • env
XDG_CONFIG_DIRS=/etc/xdg
XDG_CONFIG_HOME=$HOME/.config
XDG_SEAT=seat0
XDG_SESSION_TYPE=tty
XDG_CACHE_HOME=/tmp/user/.cache
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/local/share:/usr/share
TMUX=/tmp/tmux-1000/default,11461,0
TMUX_PLUGIN_MANAGER_PATH=$XDG_CONFIG_HOME/tmux/plugins/
TMUX_PANE=%0
  • when i press prefix + U
Updating all plugins!                                                                                                                                                                                                                                   [0/0]
  "tmux-plugin-sysstat" update success
  "tmux-network-bandwidth" update success
  "tpm" update success
TMUX environment reloaded.
Done, press ENTER to continue.
  • in tmux.conf only:
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'

bs0c avatar Jun 16 '22 15:06 bs0c