aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/vim_solarized.sh
blob: b6ecc918d9de7db8794b98aa3f0631931c9956b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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