Skip to content

Commit 4298bc2

Browse files
richardschuetzscop
authored andcommitted
feat(_modules): support zstd compressed modules
1 parent 4f537c6 commit 4298bc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bash_completion

+2-1
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)