Search This Blog

06 February 2009

ZSH Tab Completion Fix for Subversion 1.5

So one of the annoying things I noticed was that tab autocompletion for zsh was broken if I was using it with svn; showing:
_arguments:comparguments:303: invalid argument: ARG

Based on notes here I fixed it by doing the following:

$ cd /usr/share/zsh/4.3.4/functions/Completion/Unix/_subversion
$ pfexec mv _subversion ~/original._subversion
$ pfexec wget http://gvn.googlecode.com/svn/trunk/contrib/zsh/_subversion
$ pfexec chmod 444 _subversion


It all works now :)

8 comments:

  1. Oha, thanks. I just googled for this problem, and thanks to your post I solved it. The link you referred: http://mkoga.com/zsh-tab-completion-fix-for-subversion-1-5 seems to be out of date. Anyway, thank you for this solution!

    ReplyDelete
  2. Kerblam! This fixed me up good - thanks for posting.

    ReplyDelete
  3. Ah, this fix much appreciated. Much thanks.

    ReplyDelete
  4. Alternatively, you can put it in your home directory:

    mkdir -p ~/bin/zsh
    cd ~/bin/zsh
    wget http://gvn.googlecode.com/svn/trunk/contrib/zsh/_subversion
    # Mac OS X: curl -O http://gvn.googlecode.com/svn/trunk/contrib/zsh/_subversion

    And then add the new search path in your .zshrc with this line:

    fpath=(~/bin/zsh $fpath)

    ReplyDelete
  5. Anonymous' way didn't work for me. Although it is probably preferred, especially where one doesn't have privledges enough to update the file in /usr/share/zsh/

    ReplyDelete
  6. Thanks Mal + Anonymous

    ReplyDelete
  7. Still works today on CentOS 5.5, zsh 4.2.6 and svn 1.6.12. :-)

    ReplyDelete
  8. Thank You and I have a nifty proposal: Where To Start Renovating House house renovation contractors

    ReplyDelete