diff --git a/completions/insmod b/completions/insmod index a59e75355b0..2f756a99ca8 100644 --- a/completions/insmod +++ b/completions/insmod @@ -7,7 +7,7 @@ _insmod() # do filename completion for first argument if ((cword == 1)); then - _filedir '@(?(k)o?(.[gx]z))' + _filedir '@(?(k)o?(.[gx]z|.zst))' else # do module parameter completion COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \ -p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur")) diff --git a/completions/modinfo b/completions/modinfo index b2809144675..4d4d835c4ab 100644 --- a/completions/modinfo +++ b/completions/modinfo @@ -43,7 +43,7 @@ _modinfo() # do filename completion if we're giving a path to a module if [[ $cur == @(*/|[.~])* ]]; then - _filedir '@(?(k)o?(.[gx]z))' + _filedir '@(?(k)o?(.[gx]z|.zst))' else _modules $version fi diff --git a/completions/modprobe b/completions/modprobe index 958cd9389ad..799ea197453 100644 --- a/completions/modprobe +++ b/completions/modprobe @@ -80,7 +80,7 @@ _modprobe() insert) # do filename completion if we're giving a path to a module if [[ $cur == @(*/|[.~])* ]]; then - _filedir '@(?(k)o?(.[gx]z))' + _filedir '@(?(k)o?(.[gx]z|.zst))' elif [[ -n $module ]]; then # do module parameter completion if [[ $cur == *=* ]]; then