diff --git a/bundle/bundles.sh b/bundle/bundles.sh deleted file mode 100755 index cc5d891..0000000 --- a/bundle/bundles.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -# shellcheck disable=SC2016 -usage() { - cat << EOT -Usage: - ./${0##*/} ls|update|clone|save - -Commands: - ls -> List all the bundle repos - update -> Update all the bundle repos - clone -> Use 'bundles.txt' to repopulate - save -> Save repos to 'bundles.txt' -EOT - exit -} - -colors() { - sed -E -e 's/\[red\]//g' \ - -e 's/\[green\]//g' \ - -e 's/\[reset\]//g' \ - -e 's/\[b\]//g' \ - -e 's/\[ul\]//g' -} - -repos() { - # Eval "$1" for all directories - local dn - for dn in * ; do - [[ -d "$dn" ]] || continue - eval "${1//@@/$dn}" | colors - done -} - -clone_bundles() { - # Clone the bundles in 'bundles.txt' - local dn repo - while read -r dn repo ; do - [[ "$dn" != \#* ]] || continue - if [[ -d "$dn" ]]; then - echo "*** Dir [red][$dn][reset] already exists!" | colors - else - git clone "$repo" "$dn" 2>&1 | sed "s|^|[green][$dn][reset] |g" | colors - fi - done < bundles.txt -} - -case "$1" in - ls) repos 'echo -e "[red]@@[reset] [green]$(git -C @@ remote get-url origin)[reset]"' ;; - update) repos 'git -C @@ pull 2>&1 | sed "s|^|[green][@@][reset] |g"' ;; - save) repos 'echo -e "@@ $(git -C @@ remote get-url origin)"' | tee bundles.txt ;; - clone) clone_bundles ;; - ?*) echo "Unknown command: $1" ;; - *) usage ;; -esac - -# Fin. diff --git a/bundle/bundles.txt b/bundle/bundles.txt deleted file mode 100644 index fb22b3c..0000000 --- a/bundle/bundles.txt +++ /dev/null @@ -1,12 +0,0 @@ -dockerfile-syntax https://github.com/ekalinin/Dockerfile.vim.git -fugitive https://github.com/tpope/vim-fugitive.git -nerdtree https://github.com/preservim/nerdtree.git -nerdtree-git https://github.com/Xuyuanp/nerdtree-git-plugin.git -nim https://github.com/zah/nim.vim.git -solarized https://github.com/altercation/vim-colors-solarized.git -supertab https://github.com/ervandew/supertab.git -syntastic https://github.com/vim-syntastic/syntastic.git -terraform https://github.com/hashivim/vim-terraform.git -terragrunt https://github.com/yorinasub17/vim-terragrunt.git -toml-syntax https://github.com/cespare/vim-toml.git -#zig https://github.com/ziglang/zig.vim.git