Rename script for plugin installation

This commit is contained in:
Bruno Sutic 2014-08-05 18:15:07 +02:00
parent d1aed98621
commit 1e5f07085b
2 changed files with 5 additions and 5 deletions

View File

@ -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
}

2
tpm
View File

@ -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() {