2017-12-05 22:39:10 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
source ${0:A:h}/../../deploy
|
|
|
|
|
|
|
|
VIM_INSTALL_DIR="$XDG_CONFIG_HOME/vim"
|
|
|
|
|
|
|
|
install() {
|
|
|
|
case $(_os) in
|
|
|
|
macos) _is_callable vim || brew install vim ;;
|
2018-05-24 12:35:12 -07:00
|
|
|
arch) yay --needed --noconfirm -S vim ;;
|
2017-12-05 22:39:10 -08:00
|
|
|
debian) sudo apt-get install -y vim ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
_ensure_repo hlissner/.vim $VIM_INSTALL_DIR && \
|
|
|
|
cd $VIM_INSTALL_DIR && \
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
update() {
|
|
|
|
cd $VIM_INSTALL_DIR && make update
|
|
|
|
}
|
|
|
|
|
|
|
|
# link() { }
|
|
|
|
|
|
|
|
# clean() { }
|
|
|
|
|
|
|
|
init "$@"
|