-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·53 lines (43 loc) · 1.22 KB
/
install.sh
File metadata and controls
executable file
·53 lines (43 loc) · 1.22 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
#
# This installation is destructive, as it removes exisitng files/directories.
# Use at your own risk.
UNAME=$(uname)
for name in *; do
if [ ! $name == "README.md" -a ! $name == "install.sh" ]; then
target="$HOME/.$name"
if [ -h $target ]; then
rm $target
elif [ -d $target ]; then
rm -rf $target
fi
case $UNAME in
CYGWIN* | MINGW32*)
cp -R "$PWD/$name" "$target"
echo "Copied $PWD/$name to $target."
;;
*)
ln -s "$PWD/$name" "$target"
echo "Linked $PWD/$name to $target."
;;
esac
fi
done
git submodule init
git submodule update
mkdir -p ~/Desktop/projects/github/ajohnstone/;
(
rm -rf ~/Desktop/projects/github/ajohnstone/git-fresh/;
git clone https://github.com/imsky/git-fresh.git ~/Desktop/projects/github/ajohnstone/git-fresh/;
cd ~/Desktop/projects/github/ajohnstone/git-fresh/;
sudo bash ./install.sh;
);
(
curl -sSL http://git.io/git-extras-setup | sudo bash /dev/stdin
);
(
cd ~;
mkdir -p .vim .vim/bundle .vim/backup .vim/swap .vim/cache .vim/undo;
rm -rf .vim/bundle/vundle
git clone https://github.com/gmarik/vundle.git .vim/bundle/vundle
);