vundle/vundle_test.sh

21 lines
608 B
Bash
Raw Normal View History

2010-10-30 04:01:34 -04:00
setup() {
mkdir -p $HOME/.vim/autoload/ &&
curl http://github.com/gmarik/vundle/raw/master/autoload/vundle.vim > $HOME/.vim/autoload/vundle.vim
echo -en "Setup: " ; [ -s $HOME/.vim/autoload/vundle.vim ] && echo "ok" || echo "fail"
rm ~/.vim/autoload/vundle.vim
2010-10-30 04:01:34 -04:00
}
install() {
vim -e -c "BundleInstall" -c "q"
2010-10-30 04:01:34 -04:00
# echo -en "Setup: " ; [ -s $HOME/.vim/autoload/vundle.vim ] && echo "ok" || echo "fail"
2010-10-30 21:35:37 -04:00
echo -en 'Install:'; [ -d $HOME/.vim/bundle ] && [ "$(ls -1 -d ~/.vim/bundle/*|wc -l)" = "$(grep ^Bundle ~/.vim/vimrc|wc -l)" ] && echo 'ok' || echo 'fail'
2010-10-30 04:01:34 -04:00
}
test() {
setup
install
}
test