env/bootstrap.sh

27 lines
475 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=5
# Refer to steps.sh for step definition.
bootstrap() {
ensure_apt_up_to_date
ensure_apt_dependencies
ensure_nvm
inject_shell_configuration
inject_vim_configuration
}
bootstrap
return