mirror of
https://github.com/tmux-plugins/tpm.git
synced 2024-12-04 18:58:49 +00:00
Rename script for plugin installation
This commit is contained in:
parent
d1aed98621
commit
1e5f07085b
@ -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
2
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user