1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

github #94: Support .zst kernel modules with modutils

This commit is contained in:
Norbert Lange 2022-05-24 22:34:50 +02:00 committed by Matthew Martin
parent c1f1bbc5b9
commit dd2c882ae1
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2022-05-25 Norbert Lange <nolange79@gmail.com>
* github #94: Completion/Linux/Command/_modutils: Support .zst
kernel modules with modutils.
* github #93: Completion/Linux/Command/_btrfs,
Completion/Linux/Command/_fusermount,
Completion/Unix/Type/_umountable: Replace /etc/mtab with

View file

@ -127,7 +127,7 @@ _modutils() {
fi
if _cache_invalid modules-$kver || ! _retrieve_cache modules-$kver;
then
modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz|ko.xz)(.:t:r:r) )
modules=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz|ko.xz|ko.zst)(.:t:r:r) )
modaliases=( ${${${(M)${(f)"$(<$modules_dir/$kver/modules.alias)"}:#alias*}#alias }%% *} )
_store_cache modules-$kver modules modaliases
fi