refactor to use scwrypts in setup; use scwrypts everywhere

This commit is contained in:
2022-08-16 18:42:57 -06:00
parent 6157bfe8f9
commit 2b4511739c
29 changed files with 425 additions and 560 deletions

33
setup/requirements.zsh Normal file
View File

@@ -0,0 +1,33 @@
[[ $EUID -eq 0 ]] && { echo 'ERROR::Setup cannot be run as root'; exit 1; }
#####################################################################
#printf 'initializing required submodules...' >&2
#git submodule update --init --remote --recursive >/dev/null 2>&1 || {
# echo 'failed!' >&2
# echo 'unable to initialize required submodules' >&2
# exit 2
#}
#####################################################################
# normally "DOTWRYN", but uses "DOTWRYN_PATH" to avoid conflict during setup
cd "${0:a:h}"
export DOTWRYN_PATH="$(git rev-parse --show-toplevel)"
cd "$DOTWRYN_PATH"
#####################################################################
_DEPENDENCIES+=(zsh fzf)
_REQUIRED_ENV+=()
source "$DOTWRYN_PATH/zsh/plugins/scwrypts/zsh/utils/utils.module.zsh" || exit 3
SCWRYPTS() { CI=1 "$DOTWRYN_PATH/zsh/plugins/scwrypts/scwrypts" -n $1 -- ${@:2}; }
#####################################################################
source "$DOTWRYN_PATH/setup/os.zsh"
source "$DOTWRYN_PATH/setup/config.zsh"
#####################################################################
clear