@ryanc that sounds like something I could use to handle having two GitHub accounts. Currently I have SSH configured to choose the key by hostname and I then modify the repo hostname to determine which key to use. It’s a bit of a faff but so far it’s the way that requires least work.
I am intrigued how your FS works.