2021-05-08 14:42:53 +00:00
|
|
|
#!/bin/bash
|
2020-03-23 00:42:02 +00:00
|
|
|
|
2023-12-16 05:43:31 +00:00
|
|
|
# 1. PRECONDITIONS
|
|
|
|
#
|
|
|
|
# zsh is expected to be set up.
|
|
|
|
|
2024-01-28 15:55:53 +00:00
|
|
|
if [ -z "$(zsh --version 2> /dev/null)" ]; then
|
2023-12-16 05:43:31 +00:00
|
|
|
echo "💥 Install zsh (https://www.zsh.org/) before installing environment."
|
|
|
|
return
|
|
|
|
fi
|
2022-11-12 00:44:21 +00:00
|
|
|
|
2024-01-28 15:55:53 +00:00
|
|
|
# Ensuring steps are defined.
|
|
|
|
. ./steps.sh
|
2023-12-16 05:43:31 +00:00
|
|
|
|
2024-01-28 15:55:53 +00:00
|
|
|
TOTAL_STEPS=4
|
2022-11-12 00:44:21 +00:00
|
|
|
|
2024-01-28 15:55:53 +00:00
|
|
|
# Refer to steps.sh for step definition.
|
|
|
|
bootstrap() {
|
|
|
|
ensure_apt_up_to_date
|
|
|
|
ensure_apt_dependencies
|
|
|
|
inject_shell_configuration
|
|
|
|
inject_vim_configuration
|
|
|
|
}
|
2022-11-12 00:44:21 +00:00
|
|
|
|
2024-01-28 15:55:53 +00:00
|
|
|
bootstrap
|
|
|
|
return
|