samg / timetrap

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

Add additional lines to get autocompletion to work in zsh #86

Closed samg closed 10 years ago

samg commented 10 years ago

@aharris88 could you take a look at this and confirm these are correct? I'm not a zsh user.

Thanks!

agarrharr commented 10 years ago

Yeah, that looks good, but I would probably word it similar to the way you did with bash

If it isn't already, add the following to your .zshrc:

autoload -U compinit
compinit

Then add this to source the completions:

fpath=(/path/to/timetrap-1.x.y/gem/completions/zsh $fpath)