vote up -3 vote down star

zsh is recommended all over the place and is supposed to be one of the more advanced shells out there. Why then I find it that zsh autocompletion lacking in many areas that I'm used to with bash?

in particular git autocompletion in zsh is very bad:

  • in bash it knows to complete branches and command options. not so in zsh
  • in zsh it doesn't even complete filenames after many 'git' commands (for example git diff). duh!
flag

25% accept rate
3  
Please rephrase your question. If there is something you would like to do in zsh, ask that. Editorial comments are unnecessary, and in the case of your second bullet, inflammatory. catb.org/~esr/faqs/smart-questions.html – Richard Hoskins Sep 13 at 15:06

3 Answers

vote up 3 vote down

Autocompletion for git is not a bash-builtin functionality, but an additional "third-party plugin" using the basic autocomplete system of the shell, which you happen to have installed (AFAIK it is a part of the git install).

For zsh there either exists no similar autocomplete file or you don't have it installed.

Nevertheless, this says nothing about the quality of either shell, it just means that someone took the effort to create this for the bash, but for zsh no one wanted to (or you just don't have it installed).

link|flag
vote up 1 vote down

You are wrong, zsh does complete branches, options and files, at least in ALT Linux and Debian.

link|flag
vote up 0 vote down

Try upgrading to at least Zsh 4.3.10. It fixes the problems with Git aliases.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.