env/bootstrap.sh

28 lines
475 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
2024-01-28 15:59:54 +00:00
TOTAL_STEPS=5
2022-11-12 00:44:21 +00:00
# Refer to steps.sh for step definition.
bootstrap() {
ensure_apt_up_to_date
ensure_apt_dependencies
2024-01-28 15:59:54 +00:00
ensure_nvm
inject_shell_configuration
inject_vim_configuration
}
2022-11-12 00:44:21 +00:00
bootstrap
return