Sync rsync options with rsync 3.0.6, add --compress-level arg completion.

This commit is contained in:
Ville Skyttä 2009-12-22 20:53:30 +02:00
parent af90e1d5ad
commit ed45c2caaf
2 changed files with 32 additions and 16 deletions

View File

@ -25,8 +25,8 @@ bash-completion (2.x)
* Apply pine completion to alpine too.
* Remove many unnecessary short option completions where long ones exist.
* Improve configure, cvs, gkrellm, lftp, mdadm, modprobe, mplayer,
mysqladmin, screen, service, scp, ssh, update-alternatives, and general
hostname completions.
mysqladmin, rsync, screen, service, scp, ssh, update-alternatives, and
general hostname completions.
* Add abook and wtf completion, based on work by Raphaël Droz.
* Add jarsigner, k3b, lftpget, pm-utils, pack200 and unpack200 completions.
* Don't overwrite other host completions when completing from multiple

View File

@ -26,25 +26,41 @@ _rsync()
COMPREPLY=( $( compgen -W 'rsh ssh' -- "$cur" ) )
return 0
;;
--compress-level)
COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9' -- "$cur" ) )
return 0
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W '-D --verbose --quiet --checksum \
--archive --recursive --relative --backup --backup-dir \
--suffix= --update --links --copy-links --copy-unsafe-links \
--safe-links --hard-links --perms --owner --group --devices \
--times --sparse --dry-run --whole-file --no-whole-file \
COMPREPLY=( $( compgen -W '--verbose --quiet --checksum --no-motd \
--checksum --archive --recursive --relative --no-implied-dirs \
--backup --backup-dir --suffix= --update --inplace --append \
--append-verify --dirs --links --copy-links \
--copy-unsafe-links --safe-links --copy-dirlinks \
--keep-dirlinks --hard-links --perms --executability --chmod= \
--acls --xattrs --owner --group --devices --copy-devices \
--specials --times --omit-dir-times --super --fake-super \
--sparse --dry-run --whole-file --no-whole-file \
--one-file-system --block-size= --rsh= --rsync-path= \
--cvs-exclude --existing --ignore-existing --delete \
--delete-excluded --delete-after --ignore-errors \
--max-delete= --partial --force --numeric-ids --timeout= \
--ignore-times --size-only --modify-window= --temp-dir= \
--compare-dest= --compress --exclude= --exclude-from= \
--include= --include-from= --version --daemon --no-detach \
--address= --config= --port= --blocking-io --no-blocking-io \
--stats --progress --log-format= --password-file= --bwlimit= \
--write-batch= --read-batch= --ipv4 --ipv6 --help' -- "$cur" ) )
--existing --ignore-existing --remove-source-files --delete \
--delete-before --delete-during --delete-delay --delete-after \
--delete-excluded --ignore-errors --force --max-delete= \
--max-size= --min-size= --partial --partial-dir= \
--delay-updates --prune-empty-dirs --numeric-ids --timeout= \
--contimeout= --ignore-times --size-only --modify-window= \
--temp-dir= --fuzzy --compare-dest= --copy-dest= --link-dest= \
--compress --compress-level= --skip-compress= --cvs-exclude \
--filter= --exclude= --exclude-from= --include= \
--include-from= --files-from= --from0 --protect-args
--address= --port= --sockopts= --blocking-io --no-blocking-io \
--stats --8-bit-output --human-readable --progress \
--itemize-changes --out-format= --log-file= \
--log-file-format= --password-file= --list-only --bwlimit= \
--write-batch= --only-write-batch= --read-batch= --protocol= \
--iconv= --ipv4 --ipv6 --version --help --daemon --config= \
--no-detach' -- "$cur" ) )
;;
*:*)
# find which remote shell is used