1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-03 19:11:34 +01:00
zsh/Completion/User/_patch
1999-09-07 12:54:47 +00:00

41 lines
1.1 KiB
Text

#compdef patch
_arguments -s \
'(--strip)-p+:number:(0)' \
'(--fuzz)-F+:lines:' \
'(--context)-c' \
'(--ed)-e' \
'(--force)-f' \
'(--batch)-t' \
'(--ignore-whitespace)-l' \
'(--normal)-n' \
'(--forward)-N' \
'(--reverse)-R' \
'(--silent --quiet)-s' \
'(--skip)-S' \
'(--unified)-u' \
'(--version)-v' \
-{E,Z,T} \
'-i+:patch file:_files' \
'(--output)-o+:output file:_files' \
'(--reject-file)-r+:reject file:_files' \
'(--ifdef)-D+:name:' \
'(--version-control)-V+:version control style:(simple numbered existing)' \
'(--prefix)-B+:backup path prefix:' \
'(--suffix)-b:backup extension:' \
'-Y+:backup basename prefix:_files' \
'-z+:backup file suffix:(.bak)' \
'-g+:NUM:' \
'(--directory)-d+:chdir to:_files -/' \
':original file:_files' \
':patch file:_files' \
-- \
'*=NUM*:number:(0)' \
'*=LINES*:lines:' \
'*=PATCHFILE*:patch file:_files' \
'*=FILE*:file:_files' \
'*=NAME*:name:' \
'*=WORD*:quoting style:(literal shell shell-always c escape)' \
'*=STYLE*:version control style:(simple numbered existing)' \
'*=SUFFIX*:backup file suffix:(.bak)' \
'*=DIR*:chdir to:_files -/'