add zsh completion #13

Merged
merged 1 commit into from Apr 4, 2012

2 participants

@eregon
Collaborator

Hello,

This my try to implement zsh completion for ry.
It's the first time I write a zsh completion script, but it works well and seems clean.

  • It's probably worth mentioning in the README that ry setup should be called in .zshrc, after compinit.
  • Another solution, more idiomatic for zsh, is to let the user create a symlink in his $fpath and make the completion an autoloadable function.

I still need to make my mind about that.

See #9

P.S.: Just installed ry yesterday and very happy since. (I just did not expect ry setup with an argument to disallow ry use afterwards)

@eregon
Collaborator

Also, I noticed exec, binpath and fullpath are not present in the bash completion. I guess the first just waits to be added but are the others intently left out (because they are considered internal API or such)?

@jneen
Owner

Wonderful, thank you!

That's a good point about ry setup vs ry use. Perhaps use should be named differently, since it changes the global symlink, where ry setup puts a different binpath on your $PATH.

@jneen jneen merged commit ff04e2e into jneen:master Apr 4, 2012
@jneen jneen referenced this pull request Apr 4, 2012
Closed

implement completion for zsh #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment