feat: add oh-my-zsh install

This commit is contained in:
Marc 2024-01-28 11:22:42 -05:00
parent df67388344
commit 7e275c530d
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 7 additions and 1 deletions

View file

@ -3,12 +3,13 @@
# Ensuring steps are defined. # Ensuring steps are defined.
. ./steps.sh . ./steps.sh
TOTAL_STEPS=5 TOTAL_STEPS=6
# Refer to steps.sh for step definition. # Refer to steps.sh for step definition.
bootstrap() { bootstrap() {
ensure_apt_up_to_date ensure_apt_up_to_date
ensure_apt_dependencies ensure_apt_dependencies
ensure_omz
ensure_nvm ensure_nvm
inject_shell_configuration inject_shell_configuration
inject_vim_configuration inject_vim_configuration

View file

@ -38,6 +38,11 @@ ensure_apt_dependencies() {
fi fi
} }
ensure_omz() {
pre_step "Installs Oh My ZSH"
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash
}
ensure_nvm() { ensure_nvm() {
pre_step "Installing nvm to manage node version" pre_step "Installing nvm to manage node version"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash