osmcode / osmium-tool

Command line tool for working with OpenStreetMap data based on the Osmium library.
https://osmcode.org/osmium-tool/
GNU General Public License v3.0
515 stars 107 forks source link

Provide shell autocompletion #159

Open daniel-j-h opened 5 years ago

daniel-j-h commented 5 years ago

I was just playing around with the osmium export sub-command to familarize myself with it. Doing so I would have loved shell autocompletion for all osmium commands.

Can we auto-generate and then ship shell completion for osmium's sub-commands?

joto commented 5 years ago

There is code for shell autocompletion in zsh for Osmium in the zsh_completion directory. I believe the Debian packages install this. I am only using zsh, somebody else has to supply this for other shells.