-
Notifications
You must be signed in to change notification settings - Fork 0
/
brew.sh
35 lines (31 loc) · 1007 Bytes
/
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
source 'utils.sh'
install_essential_brew_casks() {
print_info "Installing Cask"
brew tap caskroom/cask
print_success "Cask installed"
print_info "Installing essential casks"
brew cask install "$@"
print_success "Essential casks successfully installed"
}
install_brew_casks() {
print_info "Installing packages"
brew cask install "$@"
print_success "All casks successfully installed"
}
install_brew_packages() {
print_info "Installing packages"
brew install "$@"
print_success "All packages successfully installed"
}
install_brew() {
print_info "Checking if Homebrew is installed"
if ! which brew > /dev/null; then
print_info "Not installed, installing.."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
print_info "Running brew doctor.."
brew doctor
print_success "Homebrew successfully installed!"
else
print_info "Homebrew already installed!"
fi
}