-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path20-install-base-packages.macos.sh
executable file
·83 lines (71 loc) · 1.36 KB
/
20-install-base-packages.macos.sh
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
82
83
#!/bin/bash
set -e
# Install base packages on macOS
#
# Usage:
# $ source ./commons.sh
# $ ./20-install-base-packages.macos.sh
#
# Options:
# REINSTALL=true # Attempts to reinstall the packages, default is `false`
# VERBOSE=true # Show all the executed commands, default is `false`
# ==============================================================================
function main {
# Customise brew execution
export HOMEBREW_NO_AUTO_UPDATE=1
is-arg-true "$REINSTALL" && export install="reinstall --force" || export install="install"
install
}
function install {
# Install packages for consistent GNU/Linux-like CLI experience on macOS
brew $install \
ack \
autoconf \
bash \
binutils \
coreutils \
ctop \
curl \
diff-so-fancy \
diffutils \
dive \
findutils \
gawk \
git \
git-crypt \
git-secrets \
gnu-getopt \
gnu-sed \
gnu-tar \
gnu-which \
gnutls \
gpg \
grep \
gzip \
jc \
jq \
less \
make \
neovim \
openssl \
pinentry-mac \
readline \
ripgrep \
screen \
tmux \
tree \
watch \
wdiff \
wget \
xq \
xz \
yq \
zip \
zlib \
zsh \
||:
}
# ==============================================================================
is-arg-true "$VERBOSE" > /dev/null 2>&1 && set -x
main $*
exit 0