2016-10-20 14:47:53 -07:00
|
|
|
#!/usr/bin/env bash
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-12-24 12:57:44 -08:00
|
|
|
case $OSTYPE in
|
2016-10-19 07:56:37 -07:00
|
|
|
darwin*)
|
2017-01-05 21:16:27 -08:00
|
|
|
brew install vim
|
2016-10-19 07:56:37 -07:00
|
|
|
;;
|
|
|
|
linux*)
|
2016-10-20 14:47:53 -07:00
|
|
|
if [[ -f /etc/arch-release ]]; then
|
2016-12-24 12:57:44 -08:00
|
|
|
sudo pacman --needed --noconfirm -S make vim
|
2016-10-19 07:56:37 -07:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2017-01-05 21:16:27 -08:00
|
|
|
if [[ ! -d "$HOME/.vim" ]]; then
|
|
|
|
git clone --recursive "https://github.com/hlissner/.vim" "$HOME/.vim"
|
2017-04-29 15:22:33 -07:00
|
|
|
cd "$HOME/.vim" && make install
|
2016-10-19 07:56:37 -07:00
|
|
|
fi
|