-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvagrant.sh
33 lines (26 loc) · 827 Bytes
/
vagrant.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PREFIX=/home/vagrant
BINDIR="$PREFIX/bin"
mkdir $BINDIR
# Remove default .gitconfig
rm ~/.gitconfig 2> /dev/null
# Install matcher
TEMP_MATCHER_FOLDER=`mktemp -d`
git clone git@github.com:burke/matcher.git $TEMP_MATCHER_FOLDER \
&& cd $TEMP_MATCHER_FOLDER \
&& make install PREFIX=$PREFIX \
# Install hub
HUBDIR="$BINDIR/hub"
TEMP_HUB_FOLDER=`mktemp -d`
git clone https://github.com/github/hub.git $TEMP_HUB_FOLDER \
&& cd $TEMP_HUB_FOLDER \
&& rake install prefix=$PREFIX \
# Setup dotfiles
DOTFILES_FOLDER="$PREFIX/dotfiles"
[ -d $DOTFILES_FOLDER ] && rm -rf $DOTFILES_FOLDER
[ -f "$PREFIX/.bashrc" ] && rm "$PREFIX/.bashrc"
git clone git@github.com:cjoudrey/dotfiles.git $DOTFILES_FOLDER \
&& cd $DOTFILES_FOLDER \
&& rake install \
&& rm "$PREFIX/.bash_profile" \
# Run vundle
vim +BundleInstall +qall