-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (29 loc) · 805 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·37 lines (29 loc) · 805 Bytes
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
#!/bin/bash
set -euo pipefail
REPO_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
export REPO_ROOT
echo "=== STARTING THE SETUP ==="
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=linux;;
Darwin*) machine=mac;;
esac
if [ "$machine" = "mac" ]; then
echo "--- SETTING UP MAC ---"
"$REPO_ROOT/setup_macos.sh" "$@"
echo "--- MAC SETUP DONE ---"
fi
if [ "$machine" = "linux" ]; then
echo "--- SETTING UP LINUX ---"
"$REPO_ROOT/setup_debian.sh" "$@"
echo "--- LINUX SETUP DONE ---"
fi
if [[ $(uname -a) =~ "kali" ]]; then
echo "--- SETTING UP KALI ---"
"$REPO_ROOT/setup_kali.sh" "$@"
echo "--- KALI SETUP DONE ---"
fi
"$REPO_ROOT/setup_common.sh"
chsh -s /bin/zsh
echo "=== SETUP DONE ==="
echo "Log out and back in to apply all the settings"