zsh-workers
 help / color / mirror / code / Atom feed
From: clutton <clutton@zoho.com>
To: Zsh workers <zsh-workers@zsh.org>
Subject: Completion/BSD/Command/_kld patch
Date: Sat, 08 Nov 2014 04:11:04 +0200	[thread overview]
Message-ID: <1415412664.19260.5.camel@eva02.mbsd> (raw)

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

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.

[-- Attachment #2: patch-Completion-BSD-Command-_kld --]
[-- Type: text/x-patch, Size: 372 bytes --]

--- 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

             reply	other threads:[~2014-11-08  2:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-08  2:11 clutton [this message]
2014-11-08 20:32 ` Bart Schaefer
2014-11-08 20:38   ` clutton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1415412664.19260.5.camel@eva02.mbsd \
    --to=clutton@zoho.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).