dominikbraun / timetrace

A simple CLI for tracking your working time.
Apache License 2.0
685 stars 76 forks source link

Enabling bash autocompletion for the CLI #25

Closed Gealber closed 3 years ago

Gealber commented 3 years ago

This pull request enable bash autocompletion for the CLI. The autocompletion would be triggered when the key is pressed; for example:

timetrace <TAB>

If we press here, the autocompletion would suggest all the commands on the CLI. Like in the following gif.

timetrace

To allow this behavior the user would run the following command:

source autocompletion/bash/enable.sh