hi, i've tihs code and i'd like to put it in some "spin" command, so the user knows something is going on in background... tried to put it in a function, same result, spin accepts only commands or scripts, not pieces of code or function, as it seems... hints? thanks
for profile in "${!profiles[@]}"; do
PROFILE="$profile" ENABLED="${profiles[$profile]}" yq -i '.data.profiles.[env(PROFILE)].enabled |= env(ENABLED)' "$XDG_CONFIG_HOME/chezmoi/chezmoi.yaml"
done
hi, i've tihs code and i'd like to put it in some "spin" command, so the user knows something is going on in background... tried to put it in a function, same result, spin accepts only commands or scripts, not pieces of code or function, as it seems... hints? thanks