Created
August 10, 2015 20:55
-
-
Save jasonleonhard/9500c94f02e9d6c7df77 to your computer and use it in GitHub Desktop.
add a vim bundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mkdir -p ~/.vimbundles | |
cd ~/.vimbundles | |
get_bundle() { | |
( | |
if [ -d "$2" ]; then | |
echo "Updating $1's $2" | |
cd "$2" | |
git pull --rebase | |
else | |
git clone "git://github.com/$1/$2.git" | |
fi | |
) | |
} | |
get_bundle tpope vim-commentary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment