mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Add completions for FreeBSD's kldload
This commit is contained in:
@@ -67,6 +67,7 @@ This section is for changes merged to the `major` branch that are not also merge
|
||||
- `configure` (autoconf only)
|
||||
- `j` (autojump #4344)
|
||||
- `jhipster` (#4472)
|
||||
- `kldload`
|
||||
- `meson`
|
||||
- `ngrok` (#4642)
|
||||
- `optipng`
|
||||
|
||||
9
share/completions/kldload.fish
Normal file
9
share/completions/kldload.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
# Completions for the FreeBSD `kldload` kernel module load utility
|
||||
|
||||
# Only attempt to match a local file if there isn't a match in /boot/kernel,
|
||||
# as odds are that is the desired source.
|
||||
complete -c kldload -xa "(
|
||||
set results (find /boot/kernel -depth 1 -iname (commandline -ct)'*.ko' | sed 's@.*/@@g;s/\.ko//');
|
||||
set -q results[1]; and printf '%s\n' $results;
|
||||
or __fish_complete_suffix .ko
|
||||
)"
|
||||
Reference in New Issue
Block a user