tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.95k stars 420 forks source link

Use the running tmux server to get @plugins or start a new server #150

Open ismell opened 5 years ago

ismell commented 5 years ago

I normally start my tmux server with a script because I don't have a .tmux.config.

i.e.,

tmux set -g @plugin 'tmux-plugins/tmux-resurrect' \; ...

This change makes it so that @plugin is sourced from the currently running tmux server instead of spinning up a new one. This also means that we no longer need to manually parse the configs.

There was also a problem that _tpm_path would not work correctly if using $XDG_CONFIG_HOME/tmux/tmux.conf because tmux by default doesn't check that path.

I tested this with both inside and outside tmux by running

./tpm/bin/install_plugin