It was a pain in the rear for me too .
I had tried a couple of times to implement this in the past, but failed. This time it just clicked, and I still can’t understand why I couldn’t see before how simple it was to do. (guess I just needed at least 3 separate reads on the related code to finally understand it, heh).
Anyway… happy as a dog with two tails now with my: alias pki="pkgman install --no-refresh"
.