samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 116 forks source link

Autocomplete script assumes ~./timetrap.db existence #189

Closed vcavallo closed 3 years ago

vcavallo commented 3 years ago

timetrap.yml allows setting arbitrary locations for the db file. This is wonderful. However, if you have used a different location for your db file, you'll get an error upon trying to trigger autocompletion, as the timetrap-autocomplete.bash file assumes that the database file resides at ~/.timetrap.db.

The simplest way to address this for now is probably just to add a line to the README suggesting that users symlink their non-standard db file location to their home directory.
Hopefully I have time today to open that PR.

categulario commented 3 years ago

Hey @vcavallo I made a little change in the bash completion script. Please check if that solves the issue for you.

categulario commented 3 years ago

Bash autocomplete no longer asumes the location of the database file. Solved in e7e0bbee577901c7a97fc724788c8c28d2dcddc2