diff --git a/scripts/sync_plugins.sh b/scripts/install_plugins.sh similarity index 95% rename from scripts/sync_plugins.sh rename to scripts/install_plugins.sh index 0a06f4c..edbb76a 100755 --- a/scripts/sync_plugins.sh +++ b/scripts/install_plugins.sh @@ -49,7 +49,7 @@ pull_changes() { } # pull new changes or clone plugin -sync_plugin() { +install_plugin() { local plugin=$1 if plugin_already_cloned "$plugin"; then # plugin is already installed @@ -63,10 +63,10 @@ sync_plugin() { fi } -sync_plugins() { +install_plugins() { local plugins=$(shared_get_tpm_plugins_list) for plugin in $plugins; do - sync_plugin "$plugin" + install_plugin "$plugin" done } @@ -82,7 +82,7 @@ main() { reload_tmux_environment shared_set_tpm_path_constant ensure_tpm_path_exists - sync_plugins + install_plugins reload_tmux_environment end_message } diff --git a/tpm b/tpm index 3af55c4..f03152c 100755 --- a/tpm +++ b/tpm @@ -26,7 +26,7 @@ source_plugins() { # Defines key binding: # prefix + I - downloads TPM plugins and reloads TMUX environment. set_tpm_key_binding() { - tmux bind-key I run-shell "$CURRENT_DIR/scripts/sync_plugins.sh >/dev/null 2>&1" + tmux bind-key I run-shell "$CURRENT_DIR/scripts/install_plugins.sh >/dev/null 2>&1" } supported_tmux_version_ok() {