diff --git a/completions/.gitignore b/completions/.gitignore index 8eacc9c9..6f745623 100644 --- a/completions/.gitignore +++ b/completions/.gitignore @@ -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 diff --git a/completions/Makefile.am b/completions/Makefile.am index 81c5e537..b6895d2c 100644 --- a/completions/Makefile.am +++ b/completions/Makefile.am @@ -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 ; \ diff --git a/completions/lzip b/completions/lzip index 9df55382..7f613be8 100644 --- a/completions/lzip +++ b/completions/lzip @@ -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