charmbracelet / wishlist

The SSH directory ✨
MIT License
1.13k stars 26 forks source link

Support wildcards in `Include` #314

Closed jvrst closed 4 months ago

jvrst commented 4 months ago

Is your feature request related to a problem? Please describe. I use Include ~/.ssh/config.d/*.config at the top of my ~/.ssh/config, pointing to about 5 different configs (e.g. one for a specific customer, one for my homelab etc). It seems that wishlist doesn't resolve these.

Describe the solution you'd like I'd like to see the hosts in those configs available when I run wishlist

Describe alternatives you've considered I could rewrite my whole ssh config back to a single file, which is an option, but then I'd lose some important structuring. I could also hardcode each config into a separate Include, which is probably what I'll end up doing for now.

I'll check out and see if I can do this myself, but any pointers are welcome :)

caarlos0 commented 4 months ago

already supported on main

263

jvrst commented 4 months ago

Thanks @caarlos0! didn't see it in the readme. Will update to main, seems the default brew version is a bit behind :)

caarlos0 commented 4 months ago

yeah, I think I'm gonna make a new release soon