-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-brew-packages
executable file
·81 lines (75 loc) · 1.28 KB
/
setup-brew-packages
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#! /usr/bin/env bash
# brew tap dbcli/tap
# brew install pgcli
if ! command -v displayplacer 2>&1 1>/dev/null; then
brew install jakehilborn/jakehilborn/displayplacer
fi
if ! command -v docker 2>&1 1>/dev/null; then
brew install --cask docker
fi
INSTALLED=`brew list`
APPLICATIONS=(
alacritty
bazel
beekeeper-studio
bzip2
code-minimap
colordiff
ctags
dbeaver-community
diff-so-fancy
extract_url
ffmpeg
fnm
fzf
lens
git
go
golang
htop
jq
kap
kube-linter
kubectl
kubectx
lazygit
neovim
obs
obsidian
openssl
postgresql
pyenv
pyenv-virtualenv
readline
ripgrep
sqlite3
starship
subversion
terminal-notifier
tig
tmux
urlview
visual-studio-code
xz
youtube-dl
zlib
zsh
)
apps_to_install=()
for app in ${APPLICATIONS[@]}; do
# Checking that $app was installed by homebrew
echo $INSTALLED | grep -q $app
if [ $? != 0 ]; then
apps_to_install+=("${app}")
fi
done
if [ ${#apps_to_install[@]} -eq 0 ]; then
echo "Nothing to install"
exit 0
fi
# Installing fonts see
# https://gist.github.com/davidteren/898f2dcccd42d9f8680ec69a3a5d350e
brew tap homebrew/cask-fonts && brew install --cask font-hack-nerd-font
missing_apps=${apps_to_install[@]}
echo Installing ${missing_apps}
brew install ${missing_apps}