-
Notifications
You must be signed in to change notification settings - Fork 10
/
install.sh
104 lines (95 loc) · 3.16 KB
/
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
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
#!/usr/bin/env bash
defaults write com.apple.finder AppleShowAllFiles YES; # show hidden files
defaults write com.apple.dock persistent-apps -array; # remove icons in Dock
defaults write com.apple.dock tilesize -int 36; # smaller icon sizes in Dock
defaults write com.apple.dock autohide -bool true; # turn Dock auto-hidng on
defaults write com.apple.dock autohide-delay -float 0; # remove Dock show delay
defaults write com.apple.dock autohide-time-modifier -float 0; # remove Dock show delay
defaults write com.apple.dock orientation right; # place Dock on the right side of screen
defaults write NSGlobalDomain AppleShowAllExtensions -bool true; # show all file extensions
killall Dock 2>/dev/null;
killall Finder 2>/dev/null;
echo "Setting up ~/.bash_profile...";
touch ~/.bash_profile;
echo "export PS1=\"\w $ \";" >> ~/.bash_profile;
echo "Setting up ~/.vimrc...";
touch ~/.vimrc;
echo "get number" >> ~/.vimrc;
echo "" >> ~/.vimrc;
echo "highlight OverLength ctermbg=red ctermfg=white guibg=#592929" >> ~/.vimrc;
echo "match OverLength /\\%81v.\\+/" >> ~/.vimrc;
# install Xcode Command Line Tools
# https://github.com/timsutton/osx-vm-templates/blob/ce8df8a7468faa7c5312444ece1b977c1b2f77a4/scripts/xcode-cli-tools.sh
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress;
PROD=$(softwareupdate -l |
grep "\*.*Command Line" |
head -n 1 | awk -F"*" '{print $2}' |
sed -e 's/^ *//' |
tr -d '\n')
softwareupdate -i "$PROD" -v;
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
brew install \
boost \
caskroom/cask/brew-cask \
cmake \
git \
leiningen \
mongodb \
mysql \
nmap \
node \
openssl \
privoxy \
pssh \
python \
redis \
homebrew/versions/swig304 \
tor \
;
brew tap caskroom/versions;
brew cask install \
1password \
adium \
clion-rc-bundled \
dropbox \
firefox \
flash \
google-chrome \
google-chrome-canary \
haskell-platform \
java \
keka \
kindle \
macs-fan-control \
mactracker \
microsoft-office \
packer \
sequel-pro \
skype \
silverlight \
spectacle \
spotify \
sublime-text \
vagrant \
virtualbox \
vlc \
vmware-fusion \
webstorm \
;
git config --global credential.helper osxkeychain; # activate git credentials storage
git config --global push.default simple; # default Git push behavior is set to `simple`
echo "Setting up MongoDB...";
sudo mkdir -p /data/db;
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents;
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist;
# install Oracle VM VirtualBox Extension Pack (needed to load OS X on VirtualBox)
# http://alanthing.com/blog/2013/03/17/virtualbox-extension-pack-with-one-line
export version=$(/usr/bin/vboxmanage -v) &&
export var1=$(echo ${version} | cut -d 'r' -f 1) &&
export var2=$(echo ${version} | cut -d 'r' -f 2) &&
export file="Oracle_VM_VirtualBox_Extension_Pack-${var1}-${var2}.vbox-extpack" &&
curl --silent --location http://download.virtualbox.org/virtualbox/${var1}/${file} \
-o ~/Downloads/${file} && VBoxManage extpack install ~/Downloads/${file} --replace &&
rm ~/Downloads/${file} &&
unset version var1 var2 file;
vagrant box add jhcook/osx-yosemite-10.10;