Updated installs for basic, default, and shell scripts

Improves name consistency by using the same `install_` prefix for all
install scripts.

The dotfiles script was renamed as a shell script since this is now a
dedicated shell configuration script so people can configure their
default shell as they like. Use of this new shell script will be
configured in a future commit.
This commit is contained in:
Brooke Kuhlmann
2022-12-24 07:35:00 -07:00
parent a6e170cead
commit 1ef42c9040
6 changed files with 26 additions and 26 deletions

View File

@@ -1,13 +1,13 @@
#! /usr/bin/env bash
# Applies basic system settings.
# Installs basic system settings.
set -o nounset
set -o errexit
set -o pipefail
IFS=$'\n\t'
SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/apply_basic_settings"
SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_basics"
if [[ -x "$SCRIPT_PATH" ]]; then
"$SCRIPT_PATH"

View File

@@ -1,13 +1,13 @@
#! /usr/bin/env bash
# Applies default settings.
# Installs system and application default settings.
set -o nounset
set -o errexit
set -o pipefail
IFS=$'\n\t'
SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/apply_default_settings"
SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_defaults"
if [[ -x "$SCRIPT_PATH" ]]; then
"$SCRIPT_PATH"

View File

@@ -1,16 +0,0 @@
#! /usr/bin/env bash
# Installs dotfiles.
set -o nounset
set -o errexit
set -o pipefail
IFS=$'\n\t'
SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_dotfiles"
if [[ -x "$SCRIPT_PATH" ]]; then
"$SCRIPT_PATH"
else
printf "WARNING: Dotfiles install script does not exist or is not executable.\n"
fi

16
bin/install_shell Executable file
View File

@@ -0,0 +1,16 @@
#! /usr/bin/env bash
# Installs shell.
set -o nounset
set -o errexit
set -o pipefail
IFS=$'\n\t'
SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_shell"
if [[ -x "$SCRIPT_PATH" ]]; then
"$SCRIPT_PATH"
else
printf "WARNING: Shell script does not exist or is not executable.\n"
fi

View File

@@ -30,7 +30,7 @@ while true; do
printf " Boot:\n"
printf " B: Create boot disk.\n"
printf " Install:\n"
printf " b: Apply basic settings.\n"
printf " b: Install basics.\n"
printf " t: Install development tools.\n"
printf " hf: Install Homebrew Formulas.\n"
printf " hc: Install Homebrew Casks.\n"
@@ -41,7 +41,7 @@ while true; do
printf " np: Install Node packages.\n"
printf " rg: Install Ruby gems.\n"
printf " rc: Install Rust crates.\n"
printf " d: Apply default settings.\n"
printf " d: Install defaults.\n"
printf " i: Install all (i.e. executes all of the above steps in order listed).\n"
printf " Restore:\n"
printf " R: Restore settings from backup.\n"

View File

@@ -9,7 +9,7 @@ process_option() {
'B')
bin/create_boot_disk;;
'b')
bin/apply_basic_settings;;
bin/install_basics;;
't')
bin/install_dev_tools;;
'hf')
@@ -31,10 +31,10 @@ process_option() {
'rc')
bin/install_rust_crates;;
'd')
bin/apply_default_settings;;
bin/install_defaults;;
'i')
caffeinate_machine
bin/apply_basic_settings
bin/install_basics
bin/install_dev_tools
bin/install_homebrew_formulas
bin/install_homebrew_casks
@@ -45,7 +45,7 @@ process_option() {
bin/install_node_packages
bin/install_ruby_gems
bin/install_rust_crates
bin/apply_default_settings
bin/install_defaults
clean_work_path;;
'R')
caffeinate_machine