-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.sh
executable file
·57 lines (46 loc) · 1.03 KB
/
base.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
#!/usr/bin/env bash
set -e
# Make sure we’re using the latest Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew upgrade
# Don't bother doing install cleanup every time, we'll do it at the end
export HOMEBREW_NO_INSTALL_CLEANUP=1
# Switch to using brew-installed bash as default shell
brew install bash bash-completion2
export BREW_BASH_PREFIX="$(brew --prefix)/bin/bash"
if ! fgrep -q "$BREW_BASH_PREFIX" /etc/shells; then
echo "$$BREW_BASH_PREFIX" | sudo tee -a /etc/shells;
chsh -s "$$BREW_BASH_PREFIX";
fi;
# Useful command line tools and libraries
brew install \
ack \
arp-scan \
coreutils \
findutils \
fswatch \
gettext \
gmp \
gnu-sed \
gnupg \
grep \
jq \
moreutils \
readline \
screen \
tmux \
tree \
vim \
watch \
wget
# Application software from casks
brw install --cask \
bartender \
gimp \
google-chrome \
iterm2 \
keepingyouawake \
sublime-text
# Remove outdated versions from the cellar
brew cleanup