[Bash-completion-commits] ./current r1266: new helper function for kernel versions
Guillaume Rousse
guillomovitch at zarb.org
Mon Jan 19 20:30:58 UTC 2009
------------------------------------------------------------
revno: 1266
committer: Guillaume Rousse <guillomovitch at zarb.org>
branch nick: current
timestamp: Mon 2009-01-19 21:30:58 +0100
message:
new helper function for kernel versions
modified:
bash_completion
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion 2009-01-17 09:38:33 +0000
+++ b/bash_completion 2009-01-19 20:30:58 +0000
@@ -357,6 +357,13 @@
fi
}
+# This function complete on available kernels
+#
+_kernel_versions()
+{
+ COMPREPLY=( $( command ls /lib/modules | grep "^$cur" ) )
+}
+
# This function completes on all available network interfaces
# -a: restrict to active interfaces only
# -w: restrict to wireless interfaces only
More information about the Bash-completion-commits
mailing list