1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-22 09:47:21 +01:00
dotfiles/bin/install-brew.sh

45 lines
839 B
Bash
Raw Normal View History

#!/bin/bash
2015-08-08 23:31:44 +02:00
# give me /usr/local first
2017-09-10 00:59:34 +02:00
#sudo chown -R "$USER" /usr/local
2015-08-08 23:31:44 +02:00
2014-02-24 17:35:21 +01:00
# Install Homebrew
2015-07-21 01:23:09 +02:00
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2014-02-24 17:35:21 +01:00
2012-06-18 21:46:35 +02:00
# Make sure were using the latest Homebrew
brew update
# Upgrade any already-installed formulae
2015-08-08 23:31:44 +02:00
brew upgrade --all
2012-06-18 21:46:35 +02:00
# Install what we need
2017-09-10 14:35:46 +02:00
brew install \
coreutils \
bash \
bash-completion2
2016-10-14 21:59:34 +02:00
# Switch to using brew-installed bash as default shell
2017-06-12 01:04:18 +02:00
if ! grep -F -q '/usr/local/bin/bash' /etc/shells; then
2016-10-14 21:59:34 +02:00
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
chsh -s /usr/local/bin/bash;
fi;
2017-09-10 14:35:46 +02:00
brew install \
git \
node \
wget \
gpg \
pinentry-mac \
tor \
mas \
rclone \
rsync \
shellcheck \
yarn \
ipfs \
ethereum \
parity
2015-08-01 16:23:42 +02:00
2015-08-08 23:31:44 +02:00
# Remove outdated versions from the cellar.
brew cleanup