fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian HomborgReformat completion scriptsce245704d

master
377 B12 linesraw
1function __fish_list_loaded_klds
2    set -l klds (kldstat | string match -r '\b\S+.ko$')
3    for kld in $klds
4        if set -l description (__fish_whatis (string replace '.ko' '' -- $kld) "kernel module")
5            printf '%s\t%s\n' $kld $description
6        else
7            printf '%s\n' $kld
8        end
9    end
10end
11
12complete -c kldunload -xa '(__fish_list_loaded_klds)'