From d2687118663853286a7c395c69923608b937782f Mon Sep 17 00:00:00 2001 From: verschmelzen Date: Sun, 22 Aug 2021 14:22:53 +0300 Subject: [PATCH] Rename binding scripts to command --- bindings/clean_plugins => commands/tpm-clean | 0 bindings/install_plugins => commands/tpm-install | 0 bindings/update_plugins => commands/tpm-update | 0 tpm | 8 ++++---- 4 files changed, 4 insertions(+), 4 deletions(-) rename bindings/clean_plugins => commands/tpm-clean (100%) rename bindings/install_plugins => commands/tpm-install (100%) rename bindings/update_plugins => commands/tpm-update (100%) diff --git a/bindings/clean_plugins b/commands/tpm-clean similarity index 100% rename from bindings/clean_plugins rename to commands/tpm-clean diff --git a/bindings/install_plugins b/commands/tpm-install similarity index 100% rename from bindings/install_plugins rename to commands/tpm-install diff --git a/bindings/update_plugins b/commands/tpm-update similarity index 100% rename from bindings/update_plugins rename to commands/tpm-update diff --git a/tpm b/tpm index 895eed5..ce72cbd 100755 --- a/tpm +++ b/tpm @@ -1,7 +1,7 @@ #!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -BINDINGS_DIR="$CURRENT_DIR/bindings" +COMMANDS_DIR="$CURRENT_DIR/commands" SCRIPTS_DIR="$CURRENT_DIR/scripts" source "$SCRIPTS_DIR/variables.sh" @@ -57,9 +57,9 @@ source_plugins() { # tpm-update - updates a plugin (or all of them) and reloads TMUX environment # tpm-clean - remove unused TPM plugins and reloads TMUX environment set_tpm_commands() { - tmux set-option -ag command-alias "tpm-install=run-shell $BINDINGS_DIR/install_plugins" - tmux set-option -ag command-alias "tpm-update=run-shell $BINDINGS_DIR/update_plugins" - tmux set-option -ag command-alias "tpm-clean=run-shell $BINDINGS_DIR/clean_plugins" + tmux set-option -ag command-alias "tpm-install=run-shell $COMMANDS_DIR/tpm-install" + tmux set-option -ag command-alias "tpm-update=run-shell $COMMANDS_DIR/tpm-update" + tmux set-option -ag command-alias "tpm-clean=run-shell $COMMANDS_DIR/tpm-clean" } # prefix + I - downloads TPM plugins and reloads TMUX environment