#!/bin/sh WD="$(pwd)" clone() { printf "\033[0mWorking dir: \033[1;34m%s\033[0;33m\n" $DIR if [ -d "$DIR" ] ; then cd $DIR git pull --ff-only origin master elif ! [ -d "$DIR" ] ; then mkdir -p "$DIR" cd "$DIR" git clone "$URL" . fi cd $WD } DIR="bundle/ag.vim" URL="https://github.com/rking/ag.vim.git" clone DIR="bundle/ctrlp.vim" URL="https://github.com/ctrlpvim/ctrlp.vim" clone DIR="bundle/emmet-vim" URL="https://github.com/mattn/emmet-vim.git" clone DIR="bundle/l9" URL="https://git.riedstra.us/vim/vim-l9.git" clone DIR="bundle/vim-airline-themes" URL="https://github.com/vim-airline/vim-airline-themes/" clone DIR="bundle/vim-airline" URL="https://github.com/vim-airline/vim-airline.git" clone DIR="bundle/vim-autocomplpop" URL="https://git.riedstra.us/vim/vim-autocomplpop.git" clone DIR="bundle/vim-go" URL="https://github.com/fatih/vim-go.git" clone DIR="themes/distinguished" URL="https://github.com/Lokaltog/vim-distinguished.git" clone DIR="themes/solarized" URL="https://github.com/altercation/vim-colors-solarized" clone DIR="themes/256noir" URL="https://github.com/andreasvc/vim-256noir" clone DIR="themes/orbital" URL="https://github.com/fcpg/vim-orbital" clone DIR="themes/dracula" URL="https://github.com/dracula/vim.git" clone DIR="themes/gruvbox" URL="https://github.com/morhetz/gruvbox" clone DIR="bundle/nerdtree" URL="https://github.com/scrooloose/nerdtree" clone DIR="bundle/gundo" URL="https://github.com/sjl/gundo.vim" clone DIR="themes/monotone" URL="https://github.com/Lokaltog/vim-monotone" clone