[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-173-g127a65f

Guillaume Rousse guillomovitch at gmail.com
Wed Jun 6 13:41:30 UTC 2012


The following commit has been merged in the master branch:
commit 67d30da6b79cf7983058a1840bce215990094246
Author: Guillaume Rousse <guillomovitch at gmail.com>
Date:   Wed Jun 6 10:45:43 2012 +0200

    add xz compression extension for kernel modules

diff --git a/bash_completion b/bash_completion
index 7cb5a21..69f4330 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1144,7 +1144,7 @@ _modules()
     local modpath
     modpath=/lib/modules/$1
     COMPREPLY=( $( compgen -W "$( command ls -RL $modpath 2>/dev/null | \
-        sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.gz\)\{0,1\}$/\1/p' )" -- "$cur" ) )
+        sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p' )" -- "$cur" ) )
 }
 
 # This function completes on installed modules

-- 
bash-completion



More information about the Bash-completion-commits mailing list