pengwynn / rdio-cli

CLI for Rdio on Mac
MIT License
101 stars 9 forks source link

Auto completion (zsh) #2

Open EtienneLem opened 11 years ago

EtienneLem commented 11 years ago

Not quite sure this should be in the official gem, so I’ll juste leave it as an issue open for discussion.

Controlling Rdio from the terminal is amazing, but you’d want these commands to be a little bit faster. For some reason I always end up typing rdio curretn

Anywho, I have a version (https://github.com/EtienneLem/rdio-cli) that add dynamic zsh auto completion. All you need is this setting in your .zshrc file

Works like a charm :smile:

pengwynn commented 11 years ago

Nice. I was thinking about doing this exact thing but perhaps as an _rdio function so we could do second-level arguments like I did for t. I think between rdio commands and rdio help <command> we could do it all at run-time and not need the big rake task I did over there. Would love a PR.