This is nice, wish I had it for a project a few friends and I were working on a few weeks ago. It was just for fun, but we were basically all working on the same raspberry pi, and we ended up logging in to our individual accounts for each commit, which got annoying.
I prefer the includeif method with an actual fallback but this was indeed interesting to read.
This is fascinating, I always thought signing keys to be such an involved process. I’d create a ba/zsh function to quickly change identities though.