From 56dc6027e7225e8e8f965ed87ce2a50a35a9d5b8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 4 Mar 2023 09:48:07 +0100 Subject: vim_solarized.sh -> vim_plugins.sh --- vim_solarized.sh | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 vim_solarized.sh (limited to 'vim_solarized.sh') diff --git a/vim_solarized.sh b/vim_solarized.sh deleted file mode 100755 index bb7ae77..0000000 --- a/vim_solarized.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -o nounset -o pipefail -shopt -s inherit_errexit lastpipe - -plugins_dir="$HOME/.vim/pack/plugins/start" -readonly plugins_dir - -plugins=( - alteraction/vim-colors-solarized -) - -pull() { - local plugin - for plugin in ${plugins[@]+"${plugins[@]}"}; do - echo "Plugin: $plugin" - - local name - name="${plugin#*/}" - - if [ -d "$name" ]; then - git -C "$name" pull - else - git clone "https://github.com/$plugin.git" - fi - done -} - -main() { - mkdir -p -- "$plugins_dir" - cd -- "$plugins_dir" - pull -} - -main -- cgit v1.2.3