forked from munificent/settings
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·35 lines (27 loc) · 982 Bytes
/
install.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
34
35
# Automatically sets up and installs as much as possible.
# Make sure to run this from the directory containing it.
echo "Symlinking .bash_profile..."
ln -fs $PWD/dotfiles/.bash_profile ~/.bash_profile
echo "Symlinking .vimrc..."
ln -fs $PWD/dotfiles/.vimrc ~/.vimrc
echo "Symlinking .gitignore_global..."
ln -fs $PWD/dotfiles/.gitignore_global ~/.gitignore_global
# Run the new .bash_profile.
source ~/.bash_profile
# Create tools directory.
mkdir -p ~/tools
echo "Enter name, press [ENTER] to continue:"
read NAME
echo "Enter email, press [ENTER] to continue:"
read EMAIL
# Setup Git
git config --global user.name $NAME
git config --global user.email $EMAIL
git config --global push.default simple
git config --global pull.ff only
git config --global core.autocrlf input
git config --global core.editor vim
git config --global diff.tool vimdiff
git config --global mergetool.prompt true
git config --global merge.tool vimdiff
git config --global merge.conflictstyle diff3