forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·37 lines (31 loc) · 891 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·37 lines (31 loc) · 891 Bytes
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
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")";
git config --global user.name "Amir Yahyavi" && \
git config --global user.email "yahyavi@gmail.com" && \
git config --global github.user yahyavi && \
git config --global core.editor "subl -w" && \
git config --global color.ui true && \
git config --global push.default simple
git clone https://github.com/powerline/fonts.git fonts
./fonts/install.sh
git pull origin master;
function doIt() {
rsync --exclude ".git/" \
--exclude ".DS_Store" \
--exclude ".osx" \
--exclude "bootstrap.sh" \
--exclude "README.md" \
--exclude "LICENSE-MIT.txt" \
-avh --no-perms . ~;
source ~/.bash_profile;
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt;
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt;
fi;
fi;
unset doIt;