Make vim install script more portable

This commit is contained in:
Henrik Lissner 2016-10-20 23:47:53 +02:00
parent 81b4adee4a
commit 6476741e55

View file

@ -1,22 +1,22 @@
#!/bin/bash #!/usr/bin/env bash
case "$OSTYPE" in case "$OSTYPE" in
darwin*) darwin*)
brew install make vim brew install make vim
;; ;;
linux*) linux*)
if is-arch; then if [[ -f /etc/arch-release ]]; then
sudo pacman -S make vim sudo pacman -S --noconfirm make vim
else is-debian; then elif [[ -f /etc/debian_version ]]; then
# TODO # TODO
exit 1 exit 1
fi fi
;; ;;
esac esac
if [ ! -d "$HOME/.vim" ] if [[ ! -d "$HOME/.vim" ]]
then then
git-repo "hlissner/.vim" "$HOME/.vim" git clone --recursive "hlissner/.vim" "$HOME/.vim"
cd "$HOME/.vim" cd "$HOME/.vim"
make install make install
fi fi