aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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