mirror of
https://github.com/gpakosz/.tmux.git
synced 2025-12-05 00:40:10 +00:00
skip spawning __apply_plugins() when it's already running
This commit is contained in:
10
.tmux.conf
10
.tmux.conf
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user