-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
37 lines (30 loc) · 916 Bytes
/
Copy pathbootstrap.sh
File metadata and controls
37 lines (30 loc) · 916 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
#!/usr/bin/env bash
# bootstrap.sh - set up a fresh development machine and keep it current.
# Run it on a new machine to install everything; re-run it any time to refresh
# the OS, mise, and your tools. Idempotent and safe to repeat.
# Usage: ./bootstrap.sh
set -euo pipefail
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)
export ROOT
. "$ROOT/lib/core.sh"
. "$ROOT/lib/os.sh"
. "$ROOT/lib/system.sh"
. "$ROOT/lib/mise.sh"
. "$ROOT/lib/aws.sh"
. "$ROOT/lib/shell.sh"
main() {
heading "Bootstrapping your development environment"
detect
info "Platform: ${OS}${DISTRO:+/$DISTRO} (${ARCH})"
auth "Some steps need administrator access - you may be prompted for your password now."
system
mise_install
mise_link
mise_update
ssm_plugin
shellrc
heading "Done"
success "Your machine is set up and up to date."
info "Set up your git identity & keys with: ./configure.sh"
}
main "$@"