aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/vim_solarized.sh
blob: fc5f20d345921a49aae06adba8317a859bafa414 (plain) (tree)
1
2
3
4


                                     
                                 












                                                        
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail
shopt -s inherit_errexit lastpipe

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