Skip to content

Instantly share code, notes, and snippets.

@knu
Created May 31, 2009 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knu/120790 to your computer and use it in GitHub Desktop.
Save knu/120790 to your computer and use it in GitHub Desktop.
Index: Completion/Unix/Command/_subversion
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_subversion,v
retrieving revision 1.27
diff -u -r1.27 _subversion
--- Completion/Unix/Command/_subversion 22 May 2009 15:48:32 -0000 1.27
+++ Completion/Unix/Command/_subversion 31 May 2009 06:35:24 -0000
@@ -150,7 +150,7 @@
args=(
${=${${${(M)${(f)"$(LC_ALL=C _call_program options svnadmin help $cmd)"#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}
)
- if [[ $_svnadmin_subcmd_usage == *REPOS_PATH* ]]; then
+ if [[ $usage == *REPOS_PATH* ]]; then
args+=( ":path:_files -/" )
elif [[ $cmd = help ]]; then
args+=( "*:subcommand:_svnadmin_commands" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment