aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-05-28 21:21:19 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-05-28 21:21:19 +0200
commit6d094129dca14817e880d8cad0baeab8b4e98973 (patch)
tree109985101534c0664f1c35919b003337dc7bd022
parentvim: solarized (light) theme (diff)
downloadlinux-home-6d094129dca14817e880d8cad0baeab8b4e98973.tar.gz
linux-home-6d094129dca14817e880d8cad0baeab8b4e98973.zip
add vim_solarized.sh
Diffstat (limited to '')
-rwxr-xr-xvim_solarized.sh16
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