Add lbzip2, lbunzip2, and lbzcat completions, using corresponding bzip2 ones.
This commit is contained in:
parent
4f35919e69
commit
2544b384ea
@ -69,7 +69,7 @@ complete -d pushd
|
|||||||
#
|
#
|
||||||
# START exclude -- do NOT remove this line
|
# START exclude -- do NOT remove this line
|
||||||
# bzcmp, bzdiff, bz*grep, bzless, bzmore intentionally not here, see Debian: #455510
|
# 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 '!*.@(zip|[ejw]ar|exe|pk3|wsz|zargo|xpi|sxw|o[tx]t|od[fgpst]|epub|apk)' unzip zipinfo
|
||||||
complete -f -X '*.Z' compress znew
|
complete -f -X '*.Z' compress znew
|
||||||
# zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510
|
# zcmp, zdiff, z*grep, zless, zmore intentionally not here, see Debian: #455510
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# bash completion for bzip2
|
# bash completion for bzip2
|
||||||
|
|
||||||
have bzip2 || have pbzip2 || return
|
have bzip2 || have pbzip2 || have lbzip2 || return
|
||||||
|
|
||||||
_bzip2()
|
_bzip2()
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@ _bzip2()
|
|||||||
COMPREPLY=( $( compgen -f -X "$xspec" -- "$cur" ) \
|
COMPREPLY=( $( compgen -f -X "$xspec" -- "$cur" ) \
|
||||||
$( compgen -d -- "$cur" ) )
|
$( compgen -d -- "$cur" ) )
|
||||||
} &&
|
} &&
|
||||||
complete -F _bzip2 bzip2 pbzip2
|
complete -F _bzip2 bzip2 pbzip2 lbzip2
|
||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# mode: shell-script
|
# mode: shell-script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user