Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Completion/BSD/Command/_kld patch



FreeBSD uses /boot/modules for third party kernel modules, like nvidia
or virtualbox.

The patch adds this particular folder, but I'm not sure about
(Open/Net)BSD behaviour and folders structure.
--- Completion/BSD/Command/_kld	2013-11-27 21:00:18.000000000 +0200
--- Completion/BSD/Command/_kld	2014-09-14 14:12:27.000000000 +0300
@@ -4,7 +4,7 @@
 _kld_module() {
   local ret=1
 
-  compadd "$@" - /boot/kernel/*.ko(-.:t) /modules/*.ko(-.:t) && ret=0
+  compadd "$@" - /boot/{kernel,modules}/*.ko(-.:t) && ret=0
   _files "$@" -g '*.ko(-.)' && ret=0
 
   return ret


Messages sorted by: Reverse Date, Date, Thread, Author