Maybe I’m too boring but what about using preprocessor defines: stick it as a -D flag in CPPFLAGS in your makefile from and env var or wherever that info comes from and read it in the source.
At least it’s how I’ve always seen it done and it does feel simpler although, yeah, maybe not as fun :)
> Significant performance improvements to completion of the available commands (#7153), especially on macOS Big Sur where there was a significant regression (#7365, #7511).
This is buried down in the Completion section but this is a big deal if you’ve upgraded to MacOS Big Sur: completing a command could hang the shell for 10-15 seconds making it nearly unusable. Thanks for fixing this!
At least it’s how I’ve always seen it done and it does feel simpler although, yeah, maybe not as fun :)