hmans/rbfu — pull request #23 by lwe (2012-07-09 12:48:06+00:00)
Title: added tab completion for zsh

Pull request for #21

- Changed to load tab completion based on available functions, i.e. if `complete` exists setup bash autocompletions, if `compdef` exists setup zsh completions.
- Use `\ls -1 ...` in both functions, because `ls` sometimes gave me improper results (trailing slashes etc.).
- FYI, I don't like all the additional code being generated, but can't really reuse bash completion code in zsh.

Also, I'm not a ZSH pro, so my code is probably far from perfect ZSH tab completion code ;) and it would be nice if it could be reduced... but well, it works as advertised.