From c64bc07b18259e8ffb1355b0aacb33a21dc215d1 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 30 Oct 2010 03:01:34 -0500 Subject: [PATCH] testing script --- vundle_test.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 vundle_test.sh diff --git a/vundle_test.sh b/vundle_test.sh new file mode 100755 index 0000000..5b99941 --- /dev/null +++ b/vundle_test.sh @@ -0,0 +1,19 @@ +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" +} + +install() { + vim -e -c "call vundle#rc()" -c "BundleInstall" -c "q" + # echo -en "Setup: " ; [ -s $HOME/.vim/autoload/vundle.vim ] && echo "ok" || echo "fail" + echo -en 'Install:'; [ -d $HOME/.vim/bundle ] && [ "$(ls -1 -d ~/.vim/bundle/*|wc -l)" = "$(grep ^Bundle ~/.vim/bundlerc|wc -l)" ] && echo 'ok' || echo 'fail' +} + +test() { + setup + install +} + +test