forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
brew.sh
executable file
·98 lines (80 loc) · 2.02 KB
/
brew.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
#!/usr/bin/env bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
if which brew > /dev/null; then
echo "brew is installed"
else
echo "brew not installed - installing"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Make sure we’re using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# Taps
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
echo "Don’t forget to add $(brew --prefix coreutils)/libexec/gnubin to \$PATH."
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash bash-completion2
bash -c 'echo /usr/local/bin/bash >> /etc/shells'
chsh -s /usr/local/bin/bash
# Install essential tools
brew install \
axel \
dos2unix \
fzf \
git \
openssl \
ripgrep \
the_silver_searcher \
thefuck \
tree \
vim \
wget \
zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k ~/.powerlevel10k
# Install development libraries
brew install \
glide \
go \
maven \
nvm \
python \
python@2
nvm install 8
# Install IDEs
brew cask install \
adoptopenjdk \
docker \
intellij-idea-ce \
p4v \
powershell \
visual-studio-code
# Install essential business apps
brew cask install \
dropbox \
evernote \
slack \
spotify \
the-unarchiver
# Install UI customizations
brew cask install \
alfred \
bartender \
caffeine \
homebrew/cask-drivers/logitech-options \
rcdefaultapp \
sizeup \
spectacle
# Remove outdated versions from the cellar
brew cleanup
# put brew first in path
echo "Fixing path to have /usr/local/bin first"
sudo sed -i '' '/\/usr\/local\/bin/d' /private/etc/paths
sudo sed -i '' '1s/^/\/usr\/local\/bin\'$'\n/' /private/etc/paths