mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-21 16:21:37 +02:00
22167: completion for GNU cp.
This commit is contained in:
parent
9d01560ff1
commit
f852bf2e0d
2 changed files with 35 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2006-01-21 Clint Adams <clint@zsh.org>
|
2006-01-21 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 22167: Completion/Unix/Command/_cp: completion for
|
||||||
|
GNU cp.
|
||||||
|
|
||||||
* 22166: Completion/Debian/Command/_bts: add new
|
* 22166: Completion/Debian/Command/_bts: add new
|
||||||
subcommands (clone, submitter, found, notfound, block, unblock,
|
subcommands (clone, submitter, found, notfound, block, unblock,
|
||||||
user, usertag, package, owner, noowner, reportspam, cache,
|
user, usertag, package, owner, noowner, reportspam, cache,
|
||||||
|
|
32
Completion/Unix/Command/_cp
Normal file
32
Completion/Unix/Command/_cp
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#compdef cp
|
||||||
|
|
||||||
|
_arguments -s \
|
||||||
|
'(-a --archive)'{-a,--archive}'[same as -dpR]' \
|
||||||
|
'(-b --backup)-b[backup]' \
|
||||||
|
'(-b --backup)--backup=:method:(none off numbered t existing nil simple never)' \
|
||||||
|
'--copy-contents[copy contents of special files when recursive]' \
|
||||||
|
'-d[same as --no-dereference --preserve=link]' \
|
||||||
|
'(-f --force)'{-f,--force}'[remove and retry for destinations that cannot be opened]' \
|
||||||
|
'(-i --interactive)'{-i,--interactive}'[prompt before overwrite]' \
|
||||||
|
'-H[follow command-line symbolic links]' \
|
||||||
|
'(-l --link)'{-l,--link}'[link files instead of copying]' \
|
||||||
|
'(-L --dereference)'{-L,--dereference}'[always follow symbolic links]' \
|
||||||
|
'-p[same as --preserve=mode,ownership,timestamps]' \
|
||||||
|
'--preserve=:attributes to preserve:_values -s , mode ownership timestamps links all' \
|
||||||
|
'--no-preserve=:attributes not to preserve:_values -s , mode ownership timestamps links all' \
|
||||||
|
'--parents[append source path to target directory]' \
|
||||||
|
'-P[same as --no-dereference]' \
|
||||||
|
'(-R -r --recursive)'{-R,-r,--recursive}'[copy directories recursively]' \
|
||||||
|
'--remove-destination[remove each existing destination file before attempting to open it]' \
|
||||||
|
'--reply=:how to handle the prompt about an existing destination file:(yes no query)' \
|
||||||
|
'--sparse=:when to create sparse files:(auto always never)' \
|
||||||
|
'--strip-trailing-slashes[remove any trailing slashes from each source argument]' \
|
||||||
|
'(-s --symbolic-link)'{-s,--symbolic-link}'[make symbolic links instead of copies of non-directories]' \
|
||||||
|
'(-S --suffix)'{-S,--suffix=}':backup suffix:' \
|
||||||
|
'--target-directory=:target directory:_files -/' \
|
||||||
|
'(-u --update)'{-u,--update}'[copy only when source is newer than destination or destination is missing]' \
|
||||||
|
'(-v --verbose)'{-v,--verbose}'[explain what is being done]' \
|
||||||
|
'(-x --one-file-system)'{-x,--one-file-system}'[stay on this file system]' \
|
||||||
|
'--help' \
|
||||||
|
'--version' \
|
||||||
|
'*:file or directory:_files'
|
Loading…
Reference in a new issue