lzma groks *.tlz.
This commit is contained in:
parent
e270eb18e3
commit
807ddd4105
2
CHANGES
2
CHANGES
@ -26,7 +26,7 @@ bash-completion (2.x)
|
||||
* Apply pine completion to alpine too.
|
||||
* Remove many unnecessary short option completions where long ones exist.
|
||||
* Improve chsh, chgrp, chown, configure, cvs, find, gkrellm, gzip, iconv,
|
||||
lftp, look, make, man, mdadm, modprobe, mount, mplayer, mysqladmin,
|
||||
lftp, look, lzma, make, man, mdadm, modprobe, mount, mplayer, mysqladmin,
|
||||
perldoc, rsync, screen, service, scp, ssh, sshfs, update-alternatives,
|
||||
vncviewer, wget, yp-tools, and general hostname completions.
|
||||
* Add abook and wtf completion, based on work by Raphaël Droz.
|
||||
|
@ -19,7 +19,7 @@ _lzma()
|
||||
|
||||
local IFS=$'\t\n'
|
||||
|
||||
xspec="*.lzma"
|
||||
xspec="*.@(lzma|tlz)"
|
||||
if [[ "$prev" == --* ]]; then
|
||||
[[ "$prev" == --decompress || \
|
||||
"$prev" == --list || \
|
||||
|
1
test/completion/lzma.exp
Normal file
1
test/completion/lzma.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions lzma
|
26
test/lib/completions/lzma.exp
Normal file
26
test/lib/completions/lzma.exp
Normal file
@ -0,0 +1,26 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "lzma "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
assert_complete "a/ bashcomp.lzma bashcomp.tlz" "lzma -d fixtures/xz/"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
Loading…
x
Reference in New Issue
Block a user