about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNorbert Lange <nolange79@gmail.com>2022-05-24 22:34:50 +0200
committerMatthew Martin <phy1729@gmail.com>2022-05-25 22:51:02 -0500
commitdd2c882ae1928d36796373fb5375040ce93aa998 (patch)
tree17b6bc703bfa285a5c3d40765db47a92bb5ffec9
parentc1f1bbc5b9c128944b82afed25140ee62ccf522a (diff)
downloadzsh-dd2c882ae1928d36796373fb5375040ce93aa998.tar.gz
zsh-dd2c882ae1928d36796373fb5375040ce93aa998.tar.xz
zsh-dd2c882ae1928d36796373fb5375040ce93aa998.zip
github #94: Support .zst kernel modules with modutils
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Linux/Command/_modutils2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f82e492f8..3fbd9d9b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index 3e46130a2..f19784dff 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -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