Skip to content

Commit

Permalink
Updated move_in.sh to check for git and vim, then install vundle and …
Browse files Browse the repository at this point in the history
…then run BundleInstall
  • Loading branch information
z0mbix committed Jan 4, 2015
1 parent 9a9d260 commit b59f7e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ $ curl -s -L -o - https://github.com/z0mbix/dotfiles/raw/master/move_in.sh | bas
FreeBSD/OpenBSD:
$ ftp -o - https://github.com/z0mbix/dotfiles/raw/master/move_in.sh | sh

Install vundle and vim bundles:
$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle && vim +BundleInstall +qall
18 changes: 16 additions & 2 deletions move_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
#
# Idea shamelessly stolen from joshua stein:
# https://github.com/jcs/dotfiles/blob/master/move_in.sh
Expand All @@ -15,7 +15,7 @@ URL=https://github.com/${GH_USER}/dotfiles/tarball/master
OS=`uname`
TD=`mktemp -d XXXXXX`
TAR=tar
FETCH="curl -L"
FETCH="curl -s -L"

# OS Specific Stuff
[ $OS = "OpenBSD" ] && FETCH="ftp -o -"
Expand Down Expand Up @@ -52,3 +52,17 @@ if [ $OS = "Darwin" ]; then
rm -f ~/.conkyrc
rm -f ~/.xsession
fi

if which git >/dev/null 2>&1; then
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
if which vim >/dev/null 2>&1; then
if [ -d ~/.vim/bundle/vundle ]; then
vim +BundleInstall +qall
fi
else
echo 'You need to install vim'
fi
else
echo 'You need to install git'
fi

0 comments on commit b59f7e5

Please sign in to comment.