env/bootstrap.sh

27 lines
460 B
Bash
Raw Normal View History

2021-05-08 14:42:53 +00:00
#!/bin/bash
2020-03-23 00:42:02 +00:00
# 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
2022-11-12 00:44:21 +00:00
# Ensuring steps are defined.
. ./steps.sh
TOTAL_STEPS=4
2022-11-12 00:44:21 +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
bootstrap
return