forked from mitchellwills/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmac.sh
124 lines (109 loc) · 2.42 KB
/
mac.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
#!/usr/bin/env bash
set -xeuo pipefail
# Manually installed:
# teamviewer
# osxfuse
#
# Installed via getmacapps.com:
# alfred
# caffeine
# chrome
# cyberduck
# flux
# iterm2
# skype
# spotify
# steam
# textwrangler
# vlc
function main() {
install_homebrew
install_packages
install_rust
}
function install_homebrew() {
local install_url="https://raw.githubusercontent.com/Homebrew/install/master/install"
local install_file="$(mktemp)"
curl --fail --silent --show-error --location "${install_url}" > "${install_file}"
# Replace stdin with /dev/null so this install script does not wait for user.
ruby -- "${install_file}" </dev/null
rm "${install_file}"
sudo mkdir -p /opt/homebrew-cask/Caskroom
sudo chmod -R 755 /opt/homebrew-cask
sudo chown -R "$(id -un):admin" /opt/homebrew-cask
}
function install_packages() {
brew cask
brew tap homebrew/dupes
brew tap homebrew/fuse
brew tap homebrew/versions
brew tap neovim/neovim
brew update
brew upgrade
brew cask install \
Caskroom/cask/xquartz \
java \
shiftit \
vagrant \
vagrant-manager \
virtualbox
# Missing or out-dated utilities.
brew install \
bazel \
clang-format \
cmake \
docker \
docker-compose \
docker-machine \
docker-machine-parallels \
file-formula \
fswatch \
gcc5 \
git \
gpatch \
gpg \
htop \
less \
neovim \
nmap \
node \
ntfs-3g \
openssh \
python \
python3 \
rsync \
tmux \
tree \
unzip \
vim \
wget \
zsh
# GNU utilities.
brew install binutils
brew install coreutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
brew install gawk
brew install gnu-indent --with-default-names
brew install gnu-sed --with-default-names
brew install gnu-tar --with-default-names
brew install gnu-which --with-default-names
brew install gnutls
brew install grep --with-default-names
brew install gzip
brew install screen
brew install watch
brew install wdiff --with-gettext
brew install wget
sudo pip2 install neovim
sudo pip3 install neovim
}
function install_rust() {
local install_url="https://static.rust-lang.org/rustup.sh"
local install_file="$(mktemp)"
curl --fail --silent --show-error --location "${install_url}" > "${install_file}"
sudo sh "${install_file}" --yes
rm "${install_file}"
}
#main