forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
brew.sh
executable file
·61 lines (52 loc) · 1.07 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
#!/usr/bin/env bash
PACKAGES=(
coreutils # Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
moreutils
findutils
git
git-lfs
gmp
grep
node
openssh
openssl
p7zip
pigz
rename
screen
tree
vim
wget
yarn
zsh
)
APPS=(
caffeine
docker
firefox
figma
google-chrome
slack
spotify
visual-studio-code
vlc
whatsapp
)
# Check for Homebrew, install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add Homebrew to your PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/christian/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Install packages
brew install ${PACKAGES[@]}
# Install apps
brew install ${APPS[@]}
# Remove outdated versions from the cellar.
brew cleanup