2016-10-20 14:47:53 -07:00
|
|
|
#!/usr/bin/env bash
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
|
|
|
brew install make vim
|
|
|
|
;;
|
|
|
|
linux*)
|
2016-10-20 14:47:53 -07:00
|
|
|
if [[ -f /etc/arch-release ]]; then
|
2016-10-30 06:30:19 -07:00
|
|
|
sudo pacman --noconfirm -S make vim
|
2016-10-20 14:47:53 -07:00
|
|
|
elif [[ -f /etc/debian_version ]]; then
|
2016-10-19 07:56:37 -07:00
|
|
|
# TODO
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2016-10-20 14:47:53 -07:00
|
|
|
if [[ ! -d "$HOME/.vim" ]]
|
2016-10-19 07:56:37 -07:00
|
|
|
then
|
2016-10-20 14:47:53 -07:00
|
|
|
git clone --recursive "hlissner/.vim" "$HOME/.vim"
|
2016-10-19 07:56:37 -07:00
|
|
|
cd "$HOME/.vim"
|
|
|
|
make install
|
|
|
|
fi
|