-
Notifications
You must be signed in to change notification settings - Fork 0
/
brew.sh
executable file
·87 lines (72 loc) · 2.21 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
#!/usr/bin/env zsh
# Install command-line tools using Homebrew.
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Save Homebrew’s installed location.
BREW_PREFIX=$(brew --prefix)
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
ln -s "${BREW_PREFIX}/bin/gsha256sum" "${BREW_PREFIX}/bin/sha256sum"
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed.
brew install findutils
# Install GNU `sed`, overwriting the built-in `sed`.
brew install gnu-sed
# Install the latest version of zsh.
brew install zsh
# Switch to using brew-installed zsh as default shell.
if ! fgrep -q "${BREW_PREFIX}/bin/zsh" /etc/shells; then
echo "${BREW_PREFIX}/bin/zsh" | sudo tee -a /etc/shells;
chsh -s "${BREW_PREFIX}/bin/zsh";
fi;
# Install Oh My Zsh.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Tap
brew tap homebrew/cask-drivers
# Install useful binaries.
brew install asimov
brew install exiftool
brew install git
brew install htop
brew install imagemagick
brew install mackup
brew install node
brew install pipenv
brew install python
brew install rename
brew install starship
brew install tldr
brew install trash
brew install tree
brew install wget
brew install z
# Install Cask binaries.
brew install --cask 1password
brew install --cask aerial
brew install --cask anki
brew install --cask appcleaner
brew install --cask arc
brew install --cask brave-browser
brew install --cask discord
brew install --cask dropbox
brew install --cask fig
brew install --cask flux
brew install --cask glance
brew install --cask google-chrome
brew install --cask hiddenbar
brew install --cask iina
brew install --cask imageoptim
brew install --cask iterm2
brew install --cask karabiner-elements
brew install --cask keepingyouawake
brew install --cask logitech-options
brew install --cask raindropio
brew install --cask raycast
brew install --cask sourcetree
brew install --cask visual-studio-code
# Remove outdated versions from the cellar.
brew cleanup
# Run services.
sudo brew services start asimov