rupa/z — pull request #65 by jimeh (2012-09-02 21:46:57+00:00)
Title: Fix loading issue under ZSH

I'm not sure this is something related specifically to my setup, but here goes.

As far as I know ZSH tries to be Bash-compatible by among other things, letting Bash completion work via the `complete` command. Hence checking for it before `compctl` under ZSH will always make it think it's running under Bash.

This fix simply checks for ZSH's `compctl` first, which Bash does not have, and hence works correctly under both Bash and ZSH.