forked from s0ber/homedir
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall
More file actions
executable file
·49 lines (35 loc) · 1.28 KB
/
install
File metadata and controls
executable file
·49 lines (35 loc) · 1.28 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
#!/bin/sh
CUR=`pwd`
if [ -d ~/Library/Application\ Support/Sublime\ Text\ 3/ ]; then
echo "Updating sublime settings"
ln -sf $CUR/sublime/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Preferences.sublime-settings
cp -f sublime/Russian-English.dic ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Russian-English.dic
cp -f sublime/Russian-English.aff ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Russian-English.aff
fi
echo "Updating git config"
cp -f gitconfig ~/.gitconfig
echo "Enter your name for git user.name:\c"
read GIT_USER_NAME
echo "Enter your email for git user.email:\c"
read GIT_USER_EMAIL
if [ $GIT_USER_NAME ] && [ $GIT_USER_NAME ]; then
git config --global --replace-all user.name $GIT_USER_NAME
git config --global --replace-all user.email $GIT_USER_EMAIL
fi
git config --global --replace-all core.excludesfile ~/.gitignore
cp -f gitignore ~/.gitignore
echo "~/.gemrc"
cp -f gemrc ~/.gemrc
echo "Installing zshkit"
rm -Rf ~/.zshkit
cp -Rf zshkit ~/.zshkit
~/.zshkit/install
echo "Adding extra lines to ~/.zshrc"
cat zshrc_addons >> ~/.zshrc
echo "Updating submodules"
git submodule init
git submodule update
git submodule foreach git co master
git submodule foreach git pull
cd $CUR
echo "Install complete!"