-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·41 lines (32 loc) · 960 Bytes
/
install.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
#!/bin/bash
# update user password's timestamp (default timeout: 5 minutes)
sudo --validate
# disable the "Last Login" / MOTD message on new terminal sessions
# https://osxdaily.com/2010/06/22/remove-the-last-login-message-from-the-terminal/
touch "${HOME}/.hushlogin"
# formulae
FORMULAE_FILE="formulae"
echo "Installing the following formulae:"
cat "${FORMULAE_FILE}"
echo
<"${FORMULAE_FILE}" xargs -n 1 brew install
# fonts
FONTS_FILE="fonts"
echo "Installing the following fonts:"
cat "${FONTS_FILE}"
echo
<"${FONTS_FILE}" xargs -n 1 brew install --cask
# casks
CASKS_FILE="casks"
echo "Installing the following casks:"
cat "${CASKS_FILE}"
echo
<"${CASKS_FILE}" xargs -n 1 brew install --cask
# Intel-only casks
if [[ "$(arch)" != "arm64" ]]; then
INTEL_ONLY_CASKS_FILE="intel_only_casks"
echo "Installing the following Intel-only casks:"
cat "${INTEL_ONLY_CASKS_FILE}"
echo
<"${INTEL_ONLY_CASKS_FILE}" xargs -n 1 brew install --cask
fi