-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.sh
executable file
·51 lines (39 loc) · 969 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
#
# mascOS setup script
# Font: https://github.com/samuelramox/dotfiles
# Main install script
source ./scripts/utils.sh
# Add your data
echo_info "Add your data:"
nano ./scripts/user.sh
source ./scripts/user.sh
# Install apps
bash ./scripts/apps.sh
# Install dotfiles
bash ./scripts/dotfiles.sh
# Install npm packages
bash ./scripts/npm.sh
# Run macOS defaults
bash ./scripts/macos.sh
# Dock settings
bash ./scripts/dock.sh
# Generate SSH key
if [[ $SSH_EMAIL ]]; then
bash ./scripts/ssh.sh
fi
# Set hostname
if [[ $HOSTNAME ]]; then
bash ./scripts/hostname.sh
fi
# Create a directory for projects and development
echo_info "Creating Developer directory in Home."
mkdir ${HOME}/Developer
# Cleanup cached downloads and remove the installation zip and folder
echo_info "Removing unnecessary files."
brew cleanup
rm -rf ${HOME}/dotfiles.tar.gz
rm -rf ${HOME}/dotfiles.zip
rm -rf ${DOTFILES_DIRECTORY}
# Finish
echo_success "Reboot and enjoy!"