-
Notifications
You must be signed in to change notification settings - Fork 0
/
newmac.sh
executable file
·161 lines (95 loc) · 2.82 KB
/
newmac.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#!/bin/sh
echo
echo
echo
echo "This script will install some of Morgan's favorite software. It'll be awesome."
echo "If you don't blindly trust him, you may want to edit this script before running it."
echo
echo "For App Store stuff, log in and install them via the Purchases tab."
echo
echo "IMPORTANT: Some of the stuff installed by this script requires Xcode, so"
echo " be sure to install that before continuing."
echo
echo
read -p "press Enter to begin"
echo
echo
# ========== #
echo "Installing Homebrew ..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
# -------
echo "Installing from Homebrew: The Silver Searcher (ag) ..."
brew install the_silver_searcher
# -------
echo "Installing from Homebrew: Trash ..."
brew install trash
# -------
echo "Installing from Homebrew: Git ..."
brew install git
# -------
echo "Installing from Homebrew: Bash Completion ..."
brew install bash-completion
# -------
echo "Installing from Homebrew Cask: Hack font ..."
brew cask install caskroom/fonts/font-hack
# -------
echo "Installing from Homebrew Cask: MacVim ..."
brew cask install macvim
# -------
echo "Installing from Homebrew Cask: iTerm2 ..."
brew cask install iterm2
# -------
echo "Installing from Homebrew Cask: Google Chrome ..."
brew cask install google-chrome
# -------
echo "Installing from Homebrew Cask: Mozilla Firefox ..."
brew cask install firefox
# -------
echo "Installing from Homebrew Cask: Flash plugin ..."
brew cask install flash
# -------
echo "Installing from Homebrew Cask: Tower ..."
brew cask install tower
# -------
echo "Installing from Homebrew Cask: DiffMerge ..."
brew cask install diffmerge
# -------
echo "Installing from Homebrew Cask: Dash ..."
brew cask install dash
# -------
echo "Installing from Homebrew Cask: VirtualBox ..."
brew cask install virtualbox
# -------
echo "Installing NPM ..."
brew install npm
# -------
echo "Installing from NPM: JSON Lint ..."
npm install --global jsonlint
# -------
echo "Setting up basic user configuration ..."
if [ ! -e ~/.ssh/id_rsa ]; then
echo "Generating SSH key ..."
ssh-keygen
cat ~/.ssh/id_rsa.pub | pbcopy
echo "Your SSH public key has been copied to the clipboard. Add it to your GitHub account before continuing."
read -p "press Enter to continue"
fi
if [ ! -d ~/Configs ]; then
mkdir ~/Configs
fi
# -------
echo "Setting up localstatic/dotfiles ..."
brew tap thoughtbot/formulae
brew install rcm
git clone [email protected]:localstatic/dotfiles.git ~/Configs/dotfiles
if [ ! -e ~/.dotfiles ]; then
ln -s ~/Configs/dotfiles ~/.dotfiles
fi
rcup -x README.md -x rcrc.template
# -------
echo "Configuring MacVim using localstatic/vimrc ..."
git clone [email protected]:localstatic/vimrc.git ~/Configs/vimrc
~/Configs/vimrc/setup.sh
# -------
echo "Finished."