Add lbzip2, lbunzip2, and lbzcat completions, using corresponding bzip2 ones.

This commit is contained in:
Ville Skyttä 2011-04-29 12:32:49 +03:00
parent 4f35919e69
commit 2544b384ea
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ complete -d pushd
#
# START exclude -- do NOT remove this line
# bzcmp, bzdiff, bz*grep, bzless, bzmore intentionally not here, see Debian: #455510
complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat pbunzip2 pbzcat
complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat pbunzip2 pbzcat lbunzip2 lbzcat
complete -f -X '!*.@(zip|[ejw]ar|exe|pk3|wsz|zargo|xpi|sxw|o[tx]t|od[fgpst]|epub|apk)' unzip zipinfo
complete -f -X '*.Z' compress znew
# zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510

View File

@ -1,6 +1,6 @@
# bash completion for bzip2
have bzip2 || have pbzip2 || return
have bzip2 || have pbzip2 || have lbzip2 || return
_bzip2()
{
@ -38,7 +38,7 @@ _bzip2()
COMPREPLY=( $( compgen -f -X "$xspec" -- "$cur" ) \
$( compgen -d -- "$cur" ) )
} &&
complete -F _bzip2 bzip2 pbzip2
complete -F _bzip2 bzip2 pbzip2 lbzip2
# Local variables:
# mode: shell-script