diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-28 21:21:19 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-28 21:21:19 +0200 |
commit | 6d094129dca14817e880d8cad0baeab8b4e98973 (patch) | |
tree | 109985101534c0664f1c35919b003337dc7bd022 | |
parent | vim: solarized (light) theme (diff) | |
download | linux-home-6d094129dca14817e880d8cad0baeab8b4e98973.tar.gz linux-home-6d094129dca14817e880d8cad0baeab8b4e98973.zip |
add vim_solarized.sh
-rwxr-xr-x | vim_solarized.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vim_solarized.sh b/vim_solarized.sh new file mode 100755 index 0000000..b6ecc91 --- /dev/null +++ b/vim_solarized.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +plugins_dir="$HOME/.vim/pack/plugins/start" +name='vim-colors-solarized' + +mkdir -p -- "$plugins_dir" +cd -- "$plugins_dir" + +if [ -d "$name" ]; then + cd -- "$name" + git pull +else + git clone "https://github.com/altercation/$name.git" +fi |