npryce / adr-tools

Command-line tools for working with Architecture Decision Records
Other
4.64k stars 588 forks source link

add autocompletion to adr #32

Closed sadraskol closed 7 years ago

sadraskol commented 7 years ago

I implemented a simple autocompletion utility as suggested in #22.

I'm not proficient at bash, so there might be some more elegant way of writing it. I'm open to any suggestion to improve the PR.

The current implementation is built to autocomplete the last term of the input.

I have tested with my own configuration only: bash v4.3 on linux (ubuntu xenial). I can't say if something needs to be implemented for other platforms.