-
Notifications
You must be signed in to change notification settings - Fork 0
/
bm
executable file
·40 lines (32 loc) · 1.06 KB
/
bm
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
#!/usr/bin/env bash
# Ensure the Brewfile is available.
cd "$DOTFILES" || exit
# Check for Homebrew installation. If not installed, then install latest
# version. macOS comes with a system version of Ruby that can be used for this.
if ( brew --version ) < /dev/null > /dev/null 2>&1; then
echo 'Homebrew is already installed!'
else
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
fi
# Tap any third-party repositories.
brew tap homebrew/cask;
brew tap homeport/tap;
brew tap mdcurran/taps;
brew tap nats-io/nats-tools;
brew tap oven-sh/bun;
brew tap speakeasy-api/homebrew-tap;
brew tap unisonweb/unison;
# Check that the Homebrew bundle functionality is enabled, then install the
# dependencies listed in the Brewfile.
if ( brew bundle check; ) < /dev/null > /dev/null 2>&1; then
echo 'Brewfiles enabled'
else
brew tap Homebrew/bundle;
fi
# Install or upgrade.
brew bundle;
# Clean-up and diagnose any potential problems.
brew cleanup && brew doctor;
# Install any non-Homebrew-managed software.
sh installers.sh;
exit 0;