-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrew.sh
executable file
·85 lines (69 loc) · 2.08 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
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# 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)"
fi
eval "$(/opt/homebrew/bin/brew shellenv)"
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Bash 4
brew install bash
brew install bash-completion@2
# We installed the new shell, now we have to activate it
echo "Adding the newly installed shell to the list of allowed shells"
if ! grep -F -q '/opt/homebrew/bin/bash' /etc/shells; then
# Prompts for password
echo '/opt/homebrew/bin/bash' | sudo tee -a /etc/shells;
# Change to the new shell, prompts for password
chsh -s /opt/homebrew/bin/bash;
fi;
brew install wget
brew install go
brew install git
brew install git-lfs
brew install tree
brew install python
brew install ruby-build
brew install rbenv
brew install coreutils
brew install shellcheck
brew install mkcert
brew install nkf
brew install jq
brew install java
brew install mysql-client
brew install awscli
brew tap homebrew/cask-versions
brew tap homebrew/cask-fonts
# Core casks
brew install --cask xquartz
# Development tool casks
brew install --cask virtualbox
brew install --cask docker
brew install --cask dotnet
brew install --cask visual-studio
brew install --cask visual-studio-code
# Misc casks
brew install --cask google-chrome
brew install --cask firefox
brew install --cask slack
brew install --cask google-japanese-ime
brew install --cask adobe-creative-cloud
brew install --cask chatwork
brew install --cask google-drive
brew install --cask charles
brew install --cask google-cloud-sdk
brew install --cask unity-hub
# Fonts casks
brew install --cask font-ricty-diminished
# Remove outdated versions from the cellar.
brew cleanup