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 :)
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!
ReplyDeleteKerblam! This fixed me up good - thanks for posting.
ReplyDeleteAh, this fix much appreciated. Much thanks.
ReplyDeleteAlternatively, you can put it in your home directory:
ReplyDeletemkdir -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)
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/
ReplyDeleteThanks Mal + Anonymous
ReplyDeleteStill works today on CentOS 5.5, zsh 4.2.6 and svn 1.6.12. :-)
ReplyDeleteThank You and I have a nifty proposal: Where To Start Renovating House house renovation contractors
ReplyDelete