diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:21:00 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:21:00 +0000 |
commit | 6584833eff28527a6b5f73a19cd85d0056bd3965 (patch) | |
tree | 9317ab0a4585b42ebf996590b2344851f3c20f9d | |
parent | a751000b53cac0d73faf5660b80aaf0377862764 (diff) | |
download | zsh-6584833eff28527a6b5f73a19cd85d0056bd3965.tar.gz zsh-6584833eff28527a6b5f73a19cd85d0056bd3965.tar.xz zsh-6584833eff28527a6b5f73a19cd85d0056bd3965.zip |
moved to Completion/BSD/Command/_kld
-rw-r--r-- | Completion/Bsd/_kld | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Completion/Bsd/_kld b/Completion/Bsd/_kld deleted file mode 100644 index eefc8bf61..000000000 --- a/Completion/Bsd/_kld +++ /dev/null @@ -1,41 +0,0 @@ -#compdef kldload kldunload - -(( $+functions[_kld_module] )) || -_kld_module() { - local ret=1 - - compadd "$@" - /boot/kernel/*.ko(:t) /modules/*.ko(:t) && ret=0 - _files "$@" -g \*.ko && ret=0 - - return ret -} - -(( $+functions[_kld_unload] )) || -_kld_unload() { - compadd "$@" - $( /sbin/kldstat | awk '($1 ~ /^[0-9]/) { print $5 }' ) -} - -(( $+functions[_kld_unload_id] )) || -_kld_unload_id() { - compadd "$@" - $( /sbin/kldstat | awk '($1 ~ /^[0-9]/) { print $1 }' ) -} - -_kld() { - case "$service" in - kldload) - _arguments -s \ - '-v[be verbose]' \ - '*:module to load:_kld_module' - ;; - - kldunload) - _arguments -s \ - '-v[be verbose]' \ - '(-n)-i:module id to unload:_kld_unload_id' \ - '(-i)-n:module to unload:_kld_unload' \ - '*:module to unload:_kld_unload' - ;; - esac -} - -_kld "$@" |