-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·36 lines (31 loc) · 929 Bytes
/
setup.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
#!/usr/bin/env bash
# shellcheck disable=SC1090
readonly scripts=(
symlink.sh
#install/my-test.sh
install/brew.sh
install/zsh.sh
install/oh-my-zsh.sh
install/vim.sh
install/rust.sh
install/macOS/macOS.sh
)
for script in "${scripts[@]}"; do
source "$script"
done
# Install brew formulaes, casks and Mac App store apps
brew bundle --file=./install/Brewfile
echo "All install scripts run"
# Do not display "Last logged in ..." when creating new shell
readonly HUSH_LOGIN_FILE=$HOME/.hushlogin
if [ -f "$HUSH_LOGIN_FILE" ]; then
echo "$HUSH_LOGIN_FILE already exist, will not create a new one";
else
touch "$HUSH_LOGIN_FILE"
cat <<EOF > "$HUSH_LOGIN_FILE"
# The mere presence of this file in the home directory disables the system
# copyright notice, the date and time of the last login, the message of the
# day as well as other information that may otherwise appear on login.
# See "man login".
EOF
fi