mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 06:46:40 +00:00
48 lines
645 B
Bash
Executable File
48 lines
645 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -e
|
|
|
|
pkgs=(
|
|
ack
|
|
"aspell --with-lang-en --with-lang-el --with-lang-sv"
|
|
bash
|
|
bazaar
|
|
ctop
|
|
dpkg
|
|
git
|
|
heroku
|
|
htop
|
|
kubernetes-cli
|
|
mysql
|
|
peco
|
|
rbenv
|
|
readline
|
|
reattach-to-user-namespace
|
|
redis
|
|
ruby-build
|
|
tccutil
|
|
the_silver_searcher
|
|
tmux
|
|
wget
|
|
zsh
|
|
)
|
|
|
|
installed=( $(brew list) )
|
|
|
|
for pkg in "${pkgs[@]}"; do
|
|
base=$(echo $pkg | awk '{print $1}')
|
|
found=""
|
|
|
|
for i in ${installed[@]}; do
|
|
if [[ "$base" == "$i" ]]; then
|
|
found=1
|
|
fi
|
|
done
|
|
|
|
if [ -z "$found" ]; then
|
|
echo "--> Missing: ${base}"
|
|
brew install ${pkg[@]}
|
|
else
|
|
echo "--> Installed: ${base}"
|
|
fi
|
|
done
|