Rename script for plugin installation
This commit is contained in:
parent
d1aed98621
commit
1e5f07085b
2 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@ pull_changes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# pull new changes or clone plugin
|
# pull new changes or clone plugin
|
||||||
sync_plugin() {
|
install_plugin() {
|
||||||
local plugin=$1
|
local plugin=$1
|
||||||
if plugin_already_cloned "$plugin"; then
|
if plugin_already_cloned "$plugin"; then
|
||||||
# plugin is already installed
|
# plugin is already installed
|
||||||
|
@ -63,10 +63,10 @@ sync_plugin() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
sync_plugins() {
|
install_plugins() {
|
||||||
local plugins=$(shared_get_tpm_plugins_list)
|
local plugins=$(shared_get_tpm_plugins_list)
|
||||||
for plugin in $plugins; do
|
for plugin in $plugins; do
|
||||||
sync_plugin "$plugin"
|
install_plugin "$plugin"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ main() {
|
||||||
reload_tmux_environment
|
reload_tmux_environment
|
||||||
shared_set_tpm_path_constant
|
shared_set_tpm_path_constant
|
||||||
ensure_tpm_path_exists
|
ensure_tpm_path_exists
|
||||||
sync_plugins
|
install_plugins
|
||||||
reload_tmux_environment
|
reload_tmux_environment
|
||||||
end_message
|
end_message
|
||||||
}
|
}
|
2
tpm
2
tpm
|
@ -26,7 +26,7 @@ source_plugins() {
|
||||||
# Defines key binding:
|
# Defines key binding:
|
||||||
# prefix + I - downloads TPM plugins and reloads TMUX environment.
|
# prefix + I - downloads TPM plugins and reloads TMUX environment.
|
||||||
set_tpm_key_binding() {
|
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() {
|
supported_tmux_version_ok() {
|
||||||
|
|
Loading…
Reference in a new issue