From 88252d2c29098945b38e737b6519278c5a6b055a Mon Sep 17 00:00:00 2001 From: "Lockszmith (kateryna)" Date: Thu, 19 Sep 2024 10:35:09 -0400 Subject: [PATCH] Fix jlmkr code + startship dbg message --- _home/private_dot_config/sz.env/truenas-scale.env | 2 +- _home/private_dot_config/sz.env/zza_starship.env | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_home/private_dot_config/sz.env/truenas-scale.env b/_home/private_dot_config/sz.env/truenas-scale.env index 5fc83de..d89614a 100644 --- a/_home/private_dot_config/sz.env/truenas-scale.env +++ b/_home/private_dot_config/sz.env/truenas-scale.env @@ -4,7 +4,7 @@ if is_cmd midclt; then if [ -n "$SCALE_POOL_ROOT" ]; then if [ -e "$SCALE_POOL_ROOT/jailmaker/jlmkr.py" ]; then #alias jlmkr="bash -c '_jlmkr() { $SCALE_POOL_ROOT/jailmaker/jlmkr.py \${@:---help}; }; _jlmkr \$@' " - jlmkr() { sudo $SCALE_POOL_ROOT/jailmaker/jlmkr.py "${@:---help}"; } + function jlmkr() { sudo $SCALE_POOL_ROOT/jailmaker/jlmkr.py "${@:---help}"; } fi fi fi diff --git a/_home/private_dot_config/sz.env/zza_starship.env b/_home/private_dot_config/sz.env/zza_starship.env index ecf459d..83653e8 100644 --- a/_home/private_dot_config/sz.env/zza_starship.env +++ b/_home/private_dot_config/sz.env/zza_starship.env @@ -3,5 +3,11 @@ if is_cmd load-starship; then . <( load-starship - ) [[ -n "${DBG}" ]] && echo "starship loaded." +elif [[ -n "${DBG}" ]]; then + >&2 printf '%s\n' \ + 'starship is not installed, you can install by running:' \ + '\tcurl -sS https://starship.rs/install.sh | FORCE=1 BIN_DIR=$HOME/bin sh > /dev/null' \ + '' + fi