-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·78 lines (63 loc) · 2.7 KB
/
install.sh
File metadata and controls
executable file
·78 lines (63 loc) · 2.7 KB
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
71
72
73
74
75
76
77
78
#!/bin/bash
set -euo pipefail
DOTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$DOTS_DIR/scripts/utils.sh"
cleanup() {
echo
print_message warning "Installation interrupted."
exit 1
}
trap cleanup INT TERM
run_script() {
local script="$DOTS_DIR/scripts/$1"
if [[ ! -f "$script" ]]; then
print_message error "Script not found: $script"
return 1
fi
bash "$script"
}
main() {
setup_logging
echo -e "${BOLD}${BLUE}"
echo " ██████╗ ██████╗ ████████╗███████╗██╗██╗ ███████╗███████╗"
echo " ██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝██║██║ ██╔════╝██╔════╝"
echo " ██║ ██║██║ ██║ ██║ █████╗ ██║██║ █████╗ ███████╗"
echo " ██║ ██║██║ ██║ ██║ ██╔══╝ ██║██║ ██╔══╝ ╚════██║"
echo " ██████╔╝╚██████╔╝ ██║ ██║ ██║███████╗███████╗███████║"
echo " ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝"
echo -e "${RESET}"
print_message info "Log file: $LOG_FILE"
echo
echo
print_message info "This will:"
echo -e " ${CYAN}1.${RESET} Install pacman packages"
echo -e " ${CYAN}2.${RESET} Install yay + AUR packages"
echo -e " ${CYAN}3.${RESET} Run post-install setup (rustup, TPM, zsh, docker)"
echo -e " ${CYAN}4.${RESET} Apply themes, fonts, cursors"
echo -e " ${CYAN}5.${RESET} Enable services"
echo
if ! ask "Proceed with installation?"; then
print_message info "Aborted."
exit 0
fi
# --- Run each step ---
print_section "Step 1: Packages"
run_script "packages.sh"
print_section "Step 2: Post-install Setup"
run_script "setup.sh"
print_section "Step 3: Themes"
run_script "themes.sh"
print_section "Step 4: Services"
run_script "services.sh"
echo
if ask "Link dotfiles config now?" "n"; then
bash "$DOTS_DIR/link.sh" all
else
print_message info "Skipping config linking"
fi
echo
print_message success "Installation complete!"
print_message info "Log saved to: $LOG_FILE"
print_message warning "Please log out and back in for group changes and shell change to take effect"
}
main "$@"