This repository has been archived by the owner on Dec 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·70 lines (63 loc) · 2.08 KB
/
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
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
#!/bin/bash
###############################################################################
# Set variables #
###############################################################################
BIN=~/dotfiles/bin # shell scripts
CONFIG=~/dotfiles/config # configuration files directory
SETUP=~/dotfiles # root folder of dotfiles
###############################################################################
# Menu #
###############################################################################
process_option() {
case $1 in
'all')
source $BIN/install.sh
source $BIN/config.sh
source $BIN/secrets.sh
break;;
'brew')
source $BIN/install.sh
break;;
'config')
source $BIN/config.sh
break;;
'secrets')
source $BIN/secrets.sh
break;;
'update')
source $BIN/update.sh
break;;
'q')
break;;
*)
break;;
esac
}
# MENU
while true; do
if [[ $# == 0 ]]; then
echo ""
echo "********************************************************************"
echo "* dotfiles *"
echo "* This Version : 0.0.1 *"
echo "* Base Version : 1.12.5 (based on MarioCatuogno/Clean-macOS) *"
echo "********************************************************************"
echo ""
echo "Available commands:"
echo ""
echo " all: Setup everything"
echo ""
echo " brew: Install Brewfile Dependencies & Applications"
echo " config: Configure macOS (e.g. enabling developer mode)"
echo " secrets: Synchronize secrets (e.g. SSH keys)"
echo " update: Update System tools (e.g. Brew Dependencies & Applications)"
echo ""
echo " q: Quit/Exit."
echo ""
read -p "Enter option: " response
echo ""
process_option $response
else
process_option $1
fi
done