1
0
Fork 0
mirror of synced 2024-11-13 21:18:57 -05:00
tpm/scripts
Raul E Rangel 5edba1c1d1 Use the running tmux server to get @plugins or start a new server
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 @plugins 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
2019-02-20 13:04:33 -07:00
..
helpers Use the running tmux server to get @plugins or start a new server 2019-02-20 13:04:33 -07:00
check_tmux_version.sh Add tmux version check 2014-07-17 23:14:32 +02:00
clean_plugins.sh Move all helpers to 'helpers/' dir 2015-08-03 17:56:45 +02:00
install_plugins.sh Move all helpers to 'helpers/' dir 2015-08-03 17:56:45 +02:00
source_plugins.sh Move all helpers to 'helpers/' dir 2015-08-03 17:56:45 +02:00
update_plugin.sh Prevent clean_plugins from deleting root 2016-12-03 12:06:29 -05:00
update_plugin_prompt_handler.sh Helper functions refactoring 2015-08-03 15:17:07 +02:00
variables.sh TPM path refactoring 2015-08-03 00:59:13 +02:00