diff options
| author | Elizabeth <me@liz.coffee> | 2025-06-02 13:11:10 -0700 |
|---|---|---|
| committer | Elizabeth <me@liz.coffee> | 2025-06-02 13:11:10 -0700 |
| commit | d098e94ad102da9d018acca72ca5a5c554d25a01 (patch) | |
| tree | d6d23ee63ad5a1aa4017a605d9e09e75de2c5f49 /tmux/.tmux/plugins/tpm/scripts/clean_plugins.sh | |
| parent | ede675866355d34ac9fdc1b8e047576f574bdfa2 (diff) | |
| download | dots-d098e94ad102da9d018acca72ca5a5c554d25a01.tar.gz dots-d098e94ad102da9d018acca72ca5a5c554d25a01.zip | |
Update paths n stuff
Diffstat (limited to 'tmux/.tmux/plugins/tpm/scripts/clean_plugins.sh')
| -rwxr-xr-x | tmux/.tmux/plugins/tpm/scripts/clean_plugins.sh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tmux/.tmux/plugins/tpm/scripts/clean_plugins.sh b/tmux/.tmux/plugins/tpm/scripts/clean_plugins.sh deleted file mode 100755 index a025524..0000000 --- a/tmux/.tmux/plugins/tpm/scripts/clean_plugins.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -HELPERS_DIR="$CURRENT_DIR/helpers" - -source "$HELPERS_DIR/plugin_functions.sh" -source "$HELPERS_DIR/utility.sh" - -if [ "$1" == "--tmux-echo" ]; then # tmux-specific echo functions - source "$HELPERS_DIR/tmux_echo_functions.sh" -else # shell output functions - source "$HELPERS_DIR/shell_echo_functions.sh" -fi - -clean_plugins() { - local plugins plugin plugin_directory - plugins="$(tpm_plugins_list_helper)" - - for plugin_directory in "$(tpm_path)"/*; do - [ -d "${plugin_directory}" ] || continue - plugin="$(plugin_name_helper "${plugin_directory}")" - case "${plugins}" in - *"${plugin}"*) : ;; - *) - [ "${plugin}" = "tpm" ] && continue - echo_ok "Removing \"$plugin\"" - rm -rf "${plugin_directory}" >/dev/null 2>&1 - [ -d "${plugin_directory}" ] && - echo_err " \"$plugin\" clean fail" || - echo_ok " \"$plugin\" clean success" - ;; - esac - done -} - -main() { - ensure_tpm_path_exists - clean_plugins - exit_value_helper -} -main |
