skip spawning __apply_plugins() when it's already running

This commit is contained in:
Gregory Pakosz
2025-11-07 13:12:48 +01:00
parent bca26bc5f3
commit f10ffa17b2

View File

@@ -1786,11 +1786,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# fi
# fi
#
# if [ "$_tmux_version" -gt 2600 ]; then
# tmux set -gu '@tpm-install' \; set -gu '@tpm-update' \; set -gu '@tpm-clean' \; set -gu '@plugin' \; set -gu '@tpm_plugins'
# else
# tmux set -g '@tpm-install' '' \; set -g '@tpm-update' '' \; set -g '@tpm-clean' '' \; set -g '@plugin' '' \; set-gu '@tpm_plugins' ''
# fi
# tmux set -gu '@tpm-install' \; set -gu '@tpm-update' \; set -gu '@tpm-clean' \; set -gu '@plugin' \; set -gu '@tpm_plugins'
# fi
# }
#
@@ -1806,7 +1802,9 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# TMUX_PLUGIN_MANAGER_PATH="$(dirname "$TMUX_CONF")/plugins"
# fi
# fi
# tmux run -b "cut -c3- '$TMUX_CONF' | sh -s __apply_plugins '$TMUX_PLUGIN_MANAGER_PATH' '$window_active' '$tmux_conf_update_plugins_on_launch' '$tmux_conf_update_plugins_on_reload' '$tmux_conf_uninstall_plugins_on_reload'"
# if ! ps -x | grep -q '[_]_apply_plugins'; then
# tmux run -b "cut -c3- '$TMUX_CONF' | sh -s __apply_plugins '$TMUX_PLUGIN_MANAGER_PATH' '$window_active' '$tmux_conf_update_plugins_on_launch' '$tmux_conf_update_plugins_on_reload' '$tmux_conf_uninstall_plugins_on_reload'"
# fi
# }
#
# _apply_important() {