-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall
executable file
·27 lines (20 loc) · 978 Bytes
/
install
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
#!/bin/sh
set -e # Exit on any failure
cp .bash_profile $HOME/.bash_profile
cp .gitconfig $HOME/.gitconfig
cp .gitignore_global $HOME/.gitignore_global
cp .irbrc $HOME/.irbrc
cp .rspec $HOME/.rspec
cp .inputrc $HOME/.inputrc
test -d /Applications/Sublime\ Text\ 2.app/ && {
cp Prefrences.sublime-settings-user $HOME/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/Preferences.sublime-settings
cp sublime_key_bindings $HOME/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/Default\ \(OSX\).sublime-keymap
}
test -d /Applications/Sublime\ Text.app && {
echo "Sublime Text 3 prefs auto install not currently supported."
}
curl --silent http://levien.com/type/myfonts/Inconsolata.otf -o $HOME/Library/Fonts/Inconsolata.otf
./sublimelink
echo "Dotfiles in $USER's home directory have been replaced"
echo "Reload shell for changes to take effect"
echo "Please set your git user name and email again."