From c1cc8c91a6273afb337a60c121ced694233300db Mon Sep 17 00:00:00 2001 From: "Lockszmith (@VAST)" Date: Thu, 3 Apr 2025 12:34:02 -0400 Subject: [PATCH] Aligned optimized initializetion per shell --- .../sz.env/aaa_zsh_0_perp.env | 1 - .../sz.env/aaa_zsh_0_perp.env.zsh | 1 + .../sz.env/aaa_zsh_2_zinit.env | 1 - .../sz.env/aaa_zsh_2_zinit.env.zsh | 1 + .../sz.env/aaa_zsh_3_completion_system.env | 1 - .../aaa_zsh_3_completion_system.env.zsh | 1 + .../private_dot_config/sz.env/aliases.env | 1 - .../sz.env/aliases.env.tmpl | 1 + .../sz.env/bbb_bash_preexec.env | 1 - .../sz.env/bbb_bash_preexec.env.bash | 1 + .../private_dot_config/sz.env/bbb_ble.sh.env | 1 - .../sz.env/bbb_ble.sh.env.bash | 1 + .../sz.env/remove_aaa_zsh_0_perp.env | 1 + .../sz.env/remove_aaa_zsh_2_zinit.env | 1 + .../remove_aaa_zsh_3_completion_system.env | 1 + .../sz.env/remove_bbb_bash_preexec.env | 1 + .../sz.env/remove_bbb_ble.sh.env | 1 + ..._zsh_0_perp.env => aaa_zsh_0_perp.env.zsh} | 0 .../sz.env/aaa_zsh_2_zinit.env | 58 ------------------- .../sz.env/aaa_zsh_2_zinit.env.zsh | 28 +++++++++ ...nv => aaa_zsh_3_completion_system.env.zsh} | 0 .../sz.env/{aliases.env => aliases.env.tmpl} | 0 .../sz.env/bbb_bash_preexec.env | 28 --------- .../sz.env/bbb_bash_preexec.env.bash | 24 ++++++++ .../private_dot_config/sz.env/bbb_ble.sh.env | 26 --------- .../sz.env/bbb_ble.sh.env.bash | 22 +++++++ .../sz.env/remove_aaa_zsh_0_perp.env | 0 .../sz.env/remove_aaa_zsh_2_zinit.env | 0 .../remove_aaa_zsh_3_completion_system.env | 0 .../sz.env/remove_bbb_bash_preexec.env | 0 .../sz.env/remove_bbb_ble.sh.env | 0 31 files changed, 85 insertions(+), 118 deletions(-) delete mode 120000 _home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env create mode 120000 _home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env.zsh delete mode 120000 _home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env create mode 120000 _home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh delete mode 120000 _home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env create mode 120000 _home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env.zsh delete mode 120000 _home.macos/private_dot_config/sz.env/aliases.env create mode 120000 _home.macos/private_dot_config/sz.env/aliases.env.tmpl delete mode 120000 _home.macos/private_dot_config/sz.env/bbb_bash_preexec.env create mode 120000 _home.macos/private_dot_config/sz.env/bbb_bash_preexec.env.bash delete mode 120000 _home.macos/private_dot_config/sz.env/bbb_ble.sh.env create mode 120000 _home.macos/private_dot_config/sz.env/bbb_ble.sh.env.bash create mode 120000 _home.macos/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env create mode 120000 _home.macos/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env create mode 120000 _home.macos/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env create mode 120000 _home.macos/private_dot_config/sz.env/remove_bbb_bash_preexec.env create mode 120000 _home.macos/private_dot_config/sz.env/remove_bbb_ble.sh.env rename _src.posix/private_dot_config/sz.env/{aaa_zsh_0_perp.env => aaa_zsh_0_perp.env.zsh} (100%) delete mode 100644 _src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env create mode 100644 _src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh rename _src.posix/private_dot_config/sz.env/{aaa_zsh_3_completion_system.env => aaa_zsh_3_completion_system.env.zsh} (100%) rename _src.posix/private_dot_config/sz.env/{aliases.env => aliases.env.tmpl} (100%) delete mode 100644 _src.posix/private_dot_config/sz.env/bbb_bash_preexec.env create mode 100644 _src.posix/private_dot_config/sz.env/bbb_bash_preexec.env.bash delete mode 100644 _src.posix/private_dot_config/sz.env/bbb_ble.sh.env create mode 100644 _src.posix/private_dot_config/sz.env/bbb_ble.sh.env.bash create mode 100644 _src.posix/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env create mode 100644 _src.posix/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env create mode 100644 _src.posix/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env create mode 100644 _src.posix/private_dot_config/sz.env/remove_bbb_bash_preexec.env create mode 100644 _src.posix/private_dot_config/sz.env/remove_bbb_ble.sh.env diff --git a/_home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env b/_home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env deleted file mode 120000 index 9ad1a34..0000000 --- a/_home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env +++ /dev/null @@ -1 +0,0 @@ -../../../_src.posix/private_dot_config/sz.env/aaa_zsh_0_perp.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env.zsh b/_home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env.zsh new file mode 120000 index 0000000..4665313 --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/aaa_zsh_0_perp.env.zsh @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/aaa_zsh_0_perp.env.zsh \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env b/_home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env deleted file mode 120000 index 089a0d8..0000000 --- a/_home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env +++ /dev/null @@ -1 +0,0 @@ -../../../_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh b/_home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh new file mode 120000 index 0000000..9db759c --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env b/_home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env deleted file mode 120000 index dbe81b1..0000000 --- a/_home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env +++ /dev/null @@ -1 +0,0 @@ -../../../_src.posix/private_dot_config/sz.env/aaa_zsh_3_completion_system.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env.zsh b/_home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env.zsh new file mode 120000 index 0000000..ee5878c --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/aaa_zsh_3_completion_system.env.zsh @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/aaa_zsh_3_completion_system.env.zsh \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/aliases.env b/_home.macos/private_dot_config/sz.env/aliases.env deleted file mode 120000 index 1807a3a..0000000 --- a/_home.macos/private_dot_config/sz.env/aliases.env +++ /dev/null @@ -1 +0,0 @@ -../../../_src.posix/private_dot_config/sz.env/aliases.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/aliases.env.tmpl b/_home.macos/private_dot_config/sz.env/aliases.env.tmpl new file mode 120000 index 0000000..308fd94 --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/aliases.env.tmpl @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/aliases.env.tmpl \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/bbb_bash_preexec.env b/_home.macos/private_dot_config/sz.env/bbb_bash_preexec.env deleted file mode 120000 index b13a0db..0000000 --- a/_home.macos/private_dot_config/sz.env/bbb_bash_preexec.env +++ /dev/null @@ -1 +0,0 @@ -../../../_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/bbb_bash_preexec.env.bash b/_home.macos/private_dot_config/sz.env/bbb_bash_preexec.env.bash new file mode 120000 index 0000000..882b92d --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/bbb_bash_preexec.env.bash @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env.bash \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/bbb_ble.sh.env b/_home.macos/private_dot_config/sz.env/bbb_ble.sh.env deleted file mode 120000 index 75fb560..0000000 --- a/_home.macos/private_dot_config/sz.env/bbb_ble.sh.env +++ /dev/null @@ -1 +0,0 @@ -../../../_src.posix/private_dot_config/sz.env/bbb_ble.sh.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/bbb_ble.sh.env.bash b/_home.macos/private_dot_config/sz.env/bbb_ble.sh.env.bash new file mode 120000 index 0000000..33a3cce --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/bbb_ble.sh.env.bash @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/bbb_ble.sh.env.bash \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env b/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env new file mode 120000 index 0000000..192589d --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env b/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env new file mode 120000 index 0000000..8051f78 --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env b/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env new file mode 120000 index 0000000..35e3ae4 --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/remove_bbb_bash_preexec.env b/_home.macos/private_dot_config/sz.env/remove_bbb_bash_preexec.env new file mode 120000 index 0000000..0ae3324 --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/remove_bbb_bash_preexec.env @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/remove_bbb_bash_preexec.env \ No newline at end of file diff --git a/_home.macos/private_dot_config/sz.env/remove_bbb_ble.sh.env b/_home.macos/private_dot_config/sz.env/remove_bbb_ble.sh.env new file mode 120000 index 0000000..b23615d --- /dev/null +++ b/_home.macos/private_dot_config/sz.env/remove_bbb_ble.sh.env @@ -0,0 +1 @@ +../../../_src.posix/private_dot_config/sz.env/remove_bbb_ble.sh.env \ No newline at end of file diff --git a/_src.posix/private_dot_config/sz.env/aaa_zsh_0_perp.env b/_src.posix/private_dot_config/sz.env/aaa_zsh_0_perp.env.zsh similarity index 100% rename from _src.posix/private_dot_config/sz.env/aaa_zsh_0_perp.env rename to _src.posix/private_dot_config/sz.env/aaa_zsh_0_perp.env.zsh diff --git a/_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env b/_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env deleted file mode 100644 index 6024fa0..0000000 --- a/_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env -S zsh -c 'echo "Not a user script. source(aka .) only"' - -BASE_SHELL=${BASE_SHELL:-${SHELL##*/}} - -if [[ "${BASE_SHELL}" == "zsh" ]]; then - # true = install zdharma-continuum/zinit - # false = install z-shell/zi - - if false; then - # Auto install zdharma-continuum/zinit - ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/bin" - if [[ ! -d "$ZINIT_HOME/.git" ]]; then - print -P "%F{33}▓▒░ %F{220}Installing DHARMA Initiative Plugin Manager (zdharma-continuum/zinit)…%f" - command mkdir -p "$(dirname "$ZINIT_HOME")" \ - && command chmod go-rwX "$(dirname "$ZINIT_HOME")" - command git clone -q --depth=1 --branch "main" \ - https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" \ - && print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" \ - || print -P "%F{160}▓▒░ The clone has failed.%f%b" - fi - source "${ZINIT_HOME}/zinit.zsh" - - autoload -Uz _zinit - (( ${+_comps} )) && _comps[zinit]=_zinit - ### End of Zinit installer's chunk - alias zi='zinit ' - - [[ -n "${DBG}" ]] && echo "zinit ready" - else - #"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - #""" z-shell/zi """ - #"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - # - # ### Added by z-shell/zi's installer - ZI_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zi/bin" - mkdir -p "$(dirname "$ZI_HOME")" - if [[ ! -d "$ZI_HOME/.git" ]]; then - print -P "%F{33}▓▒░ %F{160}Installing (%F{33}z-shell/zi%F{160})…%f" - command mkdir -p "$(dirname "$ZINIT_HOME")" \ - && command chmod go-rwX "$(dirname "$ZI_HOME")" - command git clone -q --depth=1 --branch "main" \ - https://github.com/z-shell/zi.git "$ZI_HOME" \ - && print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" \ - || print -P "%F{160}▓▒░ The clone has failed.%f%b" - fi - source "${ZI_HOME}/zi.zsh" - autoload -Uz _zi - (( ${+_comps} )) && _comps[zi]=_zi - # examples here -> https://wiki.zshell.dev/ecosystem/category/-annexes - zicompinit # <- https://wiki.zshell.dev/docs/guides/commands - ### End of z-shell/zi installer's chunk - alias zinit=zi - - [[ -n "${DBG}" ]] && echo "zi ready" - fi - -fi - diff --git a/_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh b/_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh new file mode 100644 index 0000000..551db82 --- /dev/null +++ b/_src.posix/private_dot_config/sz.env/aaa_zsh_2_zinit.env.zsh @@ -0,0 +1,28 @@ +#!/usr/bin/env -S zsh -c 'echo "Not a user script. source(aka .) only"' + +#"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +#""" z-shell/zi """ +#"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +# +# ### Added by z-shell/zi's installer +ZI_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zi/bin" +mkdir -p "$(dirname "$ZI_HOME")" +if [[ ! -d "$ZI_HOME/.git" ]]; then + print -P "%F{33}▓▒░ %F{160}Installing (%F{33}z-shell/zi%F{160})…%f" + command mkdir -p "$(dirname "$ZINIT_HOME")" \ + && command chmod go-rwX "$(dirname "$ZI_HOME")" + command git clone -q --depth=1 --branch "main" \ + https://github.com/z-shell/zi.git "$ZI_HOME" \ + && print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" \ + || print -P "%F{160}▓▒░ The clone has failed.%f%b" +fi +source "${ZI_HOME}/zi.zsh" +autoload -Uz _zi +(( ${+_comps} )) && _comps[zi]=_zi +# examples here -> https://wiki.zshell.dev/ecosystem/category/-annexes +zicompinit # <- https://wiki.zshell.dev/docs/guides/commands +### End of z-shell/zi installer's chunk +alias zinit=zi + +[[ -n "${DBG}" ]] && echo "zi ready" + diff --git a/_src.posix/private_dot_config/sz.env/aaa_zsh_3_completion_system.env b/_src.posix/private_dot_config/sz.env/aaa_zsh_3_completion_system.env.zsh similarity index 100% rename from _src.posix/private_dot_config/sz.env/aaa_zsh_3_completion_system.env rename to _src.posix/private_dot_config/sz.env/aaa_zsh_3_completion_system.env.zsh diff --git a/_src.posix/private_dot_config/sz.env/aliases.env b/_src.posix/private_dot_config/sz.env/aliases.env.tmpl similarity index 100% rename from _src.posix/private_dot_config/sz.env/aliases.env rename to _src.posix/private_dot_config/sz.env/aliases.env.tmpl diff --git a/_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env b/_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env deleted file mode 100644 index bde5808..0000000 --- a/_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"' - -BASE_SHELL=${BASE_SHELL:-${SHELL##*/}} - -if [[ "${BASE_SHELL}" == "bash" ]]; then - update-bash-preexec() { - local workdir="$SZ_ENV_ROOT/lib/bash-preexec" - [ -d "$workdir" ] && rm -fR "$workdir" - mkdir -p "$workdir" - - cd "$workdir" - - # Pull down our file from GitHub and write it to your home directory as a hidden file. - curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o ./bash-preexec.sh - # Source our file to bring it into our environment - source .bash-preexec.sh - - source "$workdir/ble-nightly/ble.sh" - } - - # shellcheck disable=SC1091 source=$HOME/.bash-preexec.sh - if [[ -f "$SZ_ENV_ROOT/lib/bash-preexec/.bash-preexec.sh" ]]; then - SZ_ENV_BASH_LOAD_PREEXEC='. "$SZ_ENV_ROOT/lib/bash-preexec/.bash-preexec.sh"' - - [[ -n "${DBG}" ]] && echo "Bash-preexec will be loaded." - fi -fi - diff --git a/_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env.bash b/_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env.bash new file mode 100644 index 0000000..19edd01 --- /dev/null +++ b/_src.posix/private_dot_config/sz.env/bbb_bash_preexec.env.bash @@ -0,0 +1,24 @@ +#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"' + +update-bash-preexec() { + local workdir="$SZ_ENV_ROOT/lib/bash-preexec" + [ -d "$workdir" ] && rm -fR "$workdir" + mkdir -p "$workdir" + + cd "$workdir" + + # Pull down our file from GitHub and write it to your home directory as a hidden file. + curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o ./bash-preexec.sh + # Source our file to bring it into our environment + source .bash-preexec.sh + + source "$workdir/ble-nightly/ble.sh" +} + +# shellcheck disable=SC1091 source=$HOME/.bash-preexec.sh +if [[ -f "$SZ_ENV_ROOT/lib/bash-preexec/.bash-preexec.sh" ]]; then + SZ_ENV_BASH_LOAD_PREEXEC='. "$SZ_ENV_ROOT/lib/bash-preexec/.bash-preexec.sh"' + + [[ -n "${DBG}" ]] && echo "Bash-preexec will be loaded." +fi + diff --git a/_src.posix/private_dot_config/sz.env/bbb_ble.sh.env b/_src.posix/private_dot_config/sz.env/bbb_ble.sh.env deleted file mode 100644 index 7c2e99e..0000000 --- a/_src.posix/private_dot_config/sz.env/bbb_ble.sh.env +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"' - -BASE_SHELL=${BASE_SHELL:-${SHELL##*/}} - -if [[ "${BASE_SHELL}" == "bash" ]]; then - update-ble.sh() { - [[ -n "${DBG}" ]] && set -x - local workdir="$SZ_ENV_ROOT/lib/ble.sh.curl" - [ -d "$workdir" ] && rm -fR "$workdir" - mkdir -p "$workdir" - - cd "$workdir" - curl -L https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz | tar xJf - - - source "$workdir/ble-nightly/ble.sh" - [[ -n "${DBG}" ]] && set +x - } - if [ -f "$SZ_ENV_ROOT/lib/ble.sh.curl/ble-nightly/ble.sh" ]; then - source "$SZ_ENV_ROOT/lib/ble.sh.curl/ble-nightly/ble.sh" --noattach - fi - - if [[ -n "${DBG}" && -n "${BLE_VERSION-}" ]]; then - echo "ble.sh will be loaded." - fi -fi - diff --git a/_src.posix/private_dot_config/sz.env/bbb_ble.sh.env.bash b/_src.posix/private_dot_config/sz.env/bbb_ble.sh.env.bash new file mode 100644 index 0000000..787d5f4 --- /dev/null +++ b/_src.posix/private_dot_config/sz.env/bbb_ble.sh.env.bash @@ -0,0 +1,22 @@ +#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"' + +update-ble.sh() { + [[ -n "${DBG}" ]] && set -x + local workdir="$SZ_ENV_ROOT/lib/ble.sh.curl" + [ -d "$workdir" ] && rm -fR "$workdir" + mkdir -p "$workdir" + + cd "$workdir" + curl -L https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz | tar xJf - + + source "$workdir/ble-nightly/ble.sh" + [[ -n "${DBG}" ]] && set +x +} +if [ -f "$SZ_ENV_ROOT/lib/ble.sh.curl/ble-nightly/ble.sh" ]; then + source "$SZ_ENV_ROOT/lib/ble.sh.curl/ble-nightly/ble.sh" --noattach +fi + +if [[ -n "${DBG}" && -n "${BLE_VERSION-}" ]]; then + echo "ble.sh will be loaded." +fi + diff --git a/_src.posix/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env b/_src.posix/private_dot_config/sz.env/remove_aaa_zsh_0_perp.env new file mode 100644 index 0000000..e69de29 diff --git a/_src.posix/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env b/_src.posix/private_dot_config/sz.env/remove_aaa_zsh_2_zinit.env new file mode 100644 index 0000000..e69de29 diff --git a/_src.posix/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env b/_src.posix/private_dot_config/sz.env/remove_aaa_zsh_3_completion_system.env new file mode 100644 index 0000000..e69de29 diff --git a/_src.posix/private_dot_config/sz.env/remove_bbb_bash_preexec.env b/_src.posix/private_dot_config/sz.env/remove_bbb_bash_preexec.env new file mode 100644 index 0000000..e69de29 diff --git a/_src.posix/private_dot_config/sz.env/remove_bbb_ble.sh.env b/_src.posix/private_dot_config/sz.env/remove_bbb_ble.sh.env new file mode 100644 index 0000000..e69de29