26 lines
460 B
Bash
26 lines
460 B
Bash
#!/bin/bash
|
|
|
|
# 1. PRECONDITIONS
|
|
#
|
|
# zsh is expected to be set up.
|
|
|
|
if [ -z "$(zsh --version 2> /dev/null)" ]; then
|
|
echo "💥 Install zsh (https://www.zsh.org/) before installing environment."
|
|
return
|
|
fi
|
|
|
|
# Ensuring steps are defined.
|
|
. ./steps.sh
|
|
|
|
TOTAL_STEPS=4
|
|
|
|
# Refer to steps.sh for step definition.
|
|
bootstrap() {
|
|
ensure_apt_up_to_date
|
|
ensure_apt_dependencies
|
|
inject_shell_configuration
|
|
inject_vim_configuration
|
|
}
|
|
|
|
bootstrap
|
|
return
|