helm/editor/+vim/install

19 lines
374 B
Plaintext
Raw Normal View History

2016-10-20 14:47:53 -07:00
#!/usr/bin/env bash
2016-10-19 07:56:37 -07:00
case $OSTYPE in
2016-10-19 07:56:37 -07:00
darwin*)
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
sudo pacman --needed --noconfirm -S make vim
2016-10-19 07:56:37 -07:00
fi
;;
esac
if [[ ! -d "$HOME/.vim" ]]; then
git clone --recursive "https://github.com/hlissner/.vim" "$HOME/.vim"
2016-10-19 07:56:37 -07:00
cd "$HOME/.vim"
make install
fi