From 485ea3247f0bf7a87b43c16037f1ac23c74df0d9 Mon Sep 17 00:00:00 2001 From: yage Date: Tue, 16 Aug 2022 23:31:16 -0600 Subject: [PATCH] Fixed setup/welcome + init on submodules --- setup/config.zsh | 3 +-- setup/requirements.zsh | 22 +++++++++++++++------- setup/welcome | 26 ++++++++++++++++++++++++++ zsh/plugins/scwrypts | 2 +- 4 files changed, 43 insertions(+), 10 deletions(-) create mode 100644 setup/welcome diff --git a/setup/config.zsh b/setup/config.zsh index d242bcb..626b8ad 100644 --- a/setup/config.zsh +++ b/setup/config.zsh @@ -1,8 +1,7 @@ function SETUP__CONFIG() { __STATUS 'starting application configuration' - CONFIG_USER_SETTINGS="$DOTWRYN_PATH/config/scwrypts.dotfile.conf" \ - SCWRYPTS zsh/config/update || return 1 + SCWRYPTS zsh/config/update || return 1 CONFIG__ZSH || return 2 CONFIG__VIM || return 3 diff --git a/setup/requirements.zsh b/setup/requirements.zsh index 23b887e..2115b3a 100644 --- a/setup/requirements.zsh +++ b/setup/requirements.zsh @@ -2,12 +2,12 @@ ##################################################################### -#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 -#} +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 +} ##################################################################### @@ -22,7 +22,12 @@ _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}; } +SCWRYPTS() { + CI=1 \ + CONFIG__USER_SETTINGS="$DOTWRYN_PATH/config/scwrypts.dotfile.conf" \ + DOTWRYN=$DOTWRYN_PATH \ + "$DOTWRYN_PATH/zsh/plugins/scwrypts/scwrypts" -n $1 -- ${@:2} +} ##################################################################### @@ -31,3 +36,6 @@ source "$DOTWRYN_PATH/setup/config.zsh" ##################################################################### clear + +# shhh don't worry about it +C=$((){B(){base64 -d};A="$(cat "$2")";for _ in {1..$1};do A=$(echo $A|B);done;echo $A} 7 "$DOTWRYN_PATH/setup/welcome");for ((i=0;i<${#C};i++));do [[ ${C:$i:1} =~ z ]] && M=$(__GET_RANDOM_COLOR) && continue;__PRINT $M "${C:$i:1}" none;sleep 0.01;done;echo;unset C M diff --git a/setup/welcome b/setup/welcome new file mode 100644 index 0000000..09c2a0b --- /dev/null +++ b/setup/welcome @@ -0,0 +1,26 @@ +Vm1wS05HRXlVblJWV0dSUVZtMVNVMWxyV21GVU1WWnlXa1JTVm1KR2NIbFdWM1JMVkRGYWMxZHJh +RmRXYldoeVZsVmFZV05zVG5OWApiRlpYVm10d05sWnNXbUZaVmtwWFVteFdWd3BpUm5CVVdXdFdX +bVZzV2tWU2JVWlNUVlp3VjFSV1ZsZGhVWEJUWVRGd1dWWlhkRmRTCmF6RlhWMnhhV0dKRmNISlVW +Vkp6VjBaV1dHVkdaRlZhTTBKVVZXcE9iMVV4V25Sa1JrNVNDbUY2VmxoV2JYUnJWbXhrU0ZWc1Js +ZGkKV0ZKTVZtMTRVMVpzVm5WVWJGcFdWMFZLV1ZaWGRGZFNhekZYVjJ4YVdHSkZjSEpEYXpGRllr +Wm9WbFl6YUZoV1IzaExVMGRXUjFOcwpaR2dLVFZWd1JGWkhlR0ZXTVVsNFZteHNZVkpyU2xkV01G +WkxWVEZhZEdSR1RsSmhlbFpZVm0xMGExWnNaRWhWYkVaRVlrWndlVlV5CmVHRldWbHBYVTI1d1Yx +WnNjR2hWYkZwSFZsWmFjd3BYYkUxTFdWUkdkbVZzV2toTlZFSlZUV3hLV1ZVeGFITlpWa3BaVVd4 +T1ZWWlcKV21oYVJscFdaVVphY2s5V1NtbFNlbXQ2VjFkMFYxVXhWbk5YV0d4V1lUTlNSVmxyVmx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HRlNNVmw0VTJ0YVUxWkZXbGhXCmJG +cDNWVEZ3UlZGVVZsZGtNMEpUV1d0YVlWUXhWbkphUkZKV1lrWndlUXBXVjNSTFZERmFjMWRyYUZk +V2JXaHlWbFZhVjFkV1JuTlQKYkdSb1RWVndSVlpyVmxkVWQzQnBZa1ZLVmxSVlZucFRkMjg5Q2c9 +PQo= diff --git a/zsh/plugins/scwrypts b/zsh/plugins/scwrypts index 5c88259..244c188 160000 --- a/zsh/plugins/scwrypts +++ b/zsh/plugins/scwrypts @@ -1 +1 @@ -Subproject commit 5c882597dab5f374125fff51a96f813e8c47fd3e +Subproject commit 244c188deb9efaab154cfd3c29a35e21f2b149d4