Skip to content

Commit 6951e9a

Browse files
feat(_modules): support zstd compressed modules
1 parent 2b6785d commit 6951e9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bash_completion

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,8 @@ _modules()
14171417
local modpath
14181418
modpath=/lib/modules/$1
14191419
COMPREPLY=($(compgen -W "$(command ls -RL $modpath 2>/dev/null |
1420-
command sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p')" -- "$cur"))
1420+
command sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p' \
1421+
-e 's/^\(.*\)\.ko\.zst$/\1/p')" -- "$cur"))
14211422
}
14221423

14231424
# This function completes on installed modules

0 commit comments

Comments
 (0)