Skip to content

Commit

Permalink
Add back brew install script to install pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
mbchoa committed Jun 18, 2022
1 parent 769266d commit 5fb7a6f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions install/brew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# Installs Homebrew and some of the common dependencies needed/desired for software development

# Ask for the administrator password upfront
sudo -v

# Check for Homebrew and install it if missing
if test ! $(which brew)
then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

# Make sure we’re using the latest Homebrew
brew update

# Install the Homebrew packages I use on a day-to-day basis.
apps=(
pyenv
)

echo "Installing Brew apps"
for i in "${apps[@]}"; do
echo "Installing $i"
brew install "$i"
done

# Remove outdated versions from the cellar
brew cleanup

0 comments on commit 5fb7a6f

Please sign in to comment.