clzip, pdlzip, plzip: New lzip alias completions.

This commit is contained in:
Ville Skyttä 2012-07-13 19:40:21 +03:00
parent a624cc2c30
commit fc107b4bdc
3 changed files with 16 additions and 2 deletions

View File

@ -18,6 +18,7 @@ ci
ciptool
civclient
civserver
clzip
co
compare
compgen
@ -92,6 +93,7 @@ muttng
ncal
pbzip2
pccardctl
pdlzip
perldoc
phing
pigz
@ -100,6 +102,7 @@ ping6
pkg_deinstall
pkg_info
pkill
plzip
pm-suspend
pm-suspend-hybrid
pmake

View File

@ -376,6 +376,7 @@ CLEANFILES = \
ciptool \
civclient \
civserver \
clzip \
co \
compare \
compgen \
@ -450,6 +451,7 @@ CLEANFILES = \
ncal \
pbzip2 \
pccardctl \
pdlzip \
perldoc \
phing \
pigz \
@ -458,6 +460,7 @@ CLEANFILES = \
pkg_deinstall \
pkg_info \
pkill \
plzip \
pm-suspend \
pm-suspend-hybrid \
pmake \
@ -676,6 +679,10 @@ symlinks: $(targetdir)
rm -f $(targetdir)/$$file && \
$(LN_S) lvm $(targetdir)/$$file ; \
done
for file in clzip pdlzip plzip ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) lzip $(targetdir)/$$file ; \
done
for file in gmake gnumake pmake ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) make $(targetdir)/$$file ; \

View File

@ -9,12 +9,16 @@ _lzip()
case $prev in
-h|--help|-V|--version|-b|--member-size|-m|--match-length|\
-s|--dictionary-size|-S|--volume-size)
-s|--dictionary-size|-S|--volume-size|-B|--data-size)
return
;;
-d|--decompress)
decompress=true
;;
-n|--threads)
COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) )
return
;;
-o|--output)
_filedir
return
@ -39,6 +43,6 @@ _lzip()
COMPREPLY=( $( compgen -f -X "*.lz" -- "$cur" ) \
$( compgen -d -- "$cur" ) )
} &&
complete -F _lzip lzip
complete -F _lzip clzip lzip pdlzip plzip
# ex: ts=4 sw=4 et filetype=sh