From 2a630983a6e3632b15f42f7aeed839a1f03f4777 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@kateryna)" Date: Sun, 24 Nov 2024 22:11:39 -0500 Subject: [PATCH] Allow VISUAL or EDITOR env to pass to jlmkr calls This allows the following action: "EDITOR=cat jlmkr edit runitpi" --- _home/private_dot_config/sz.env/truenas-scale.env | 2 +- 1 file changed, 1 insertion(+), 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 f14b8fd..1ca907a 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 \$@' " - function jlmkr() { sudo $SCALE_POOL_ROOT/jailmaker/jlmkr.py "${@:---help}"; } + function jlmkr() { sudo VISUAL="${VISUAL:-}" EDITOR="${EDITOR:-}" $SCALE_POOL_ROOT/jailmaker/jlmkr.py "${@:---help}"; } jlmkr-zellij() { zellij action go-to-tab-name --create "jailmkr"