SFTtech / openage

Free (as in freedom) open source clone of the Age of Empires II engine 🚀
http://openage.dev
Other
12.61k stars 1.11k forks source link

zsh completion module #173

Open TheJJ opened 9 years ago

TheJJ commented 9 years ago

There should be an openage completion module allowing to select the demos, tests and (soon) benchmarks.

This file is installed to /usr/share/zsh/site-functions but it should also be available for developers somehow (the least elegant solution would be sourcing that file manually).

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

mic-e commented 9 years ago

As part of the dist folder? I guess that would be OK... but don't forget the bash completions file for our more poorly-equipped friends :P

Also what's the folder on OSX?

Note that you can add fpath=(~/git/openage/dist/zshcompletion $fpath) to your .zshrc before compinit

Also have a look at the genzshcomp python module, which we could use if argument parsing would ultimately happen in the python part of openage.

TheJJ commented 9 years ago

This completion file should ideally be created by the buildsystem: