Refactor names

This commit is contained in:
2025-01-25 17:11:54 -06:00
parent 9660f2c50b
commit bfae90f83a
11 changed files with 38 additions and 24 deletions

22
pre_install_01 Executable file
View File

@ -0,0 +1,22 @@
#!/bin/zsh
mkdirs_before_copying_config_files() {
[[ ! -d $HOME/.config ]] && mkdir $HOME/.config
[[ ! -d $HOME/.local ]] && mkdir $HOME/.local
[[ ! -d $HOME/.local/bin ]] && mkdir $HOME/.local/bin
[[ ! -d $HOME/.local/build ]] && mkdir $HOME/.local/build
[[ ! -d $HOME/.local/tmp ]] && mkdir $HOME/.local/tmp
}
[[ -z $BOX_SETUP_OS ]] && echo "BOX_SETUP_OS must be set" && exit 1
local install_cmd=''
case $BOX_SETUP_OS in
(arch | artix) install_cmd="sudo pacman -S" ;;
(debian) export install_cmd="sudo apt install" ;;
(macos) export install_cmd="brew install" ;;
esac
export BOX_SETUP_INSTALL_COMMAND="$install_cmd"
mkdirs_before_copying_config_files