diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:19:08 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:19:08 +0000 |
commit | 82c2f85c42ba82f2ecac42f49c2f81a95dee63c6 (patch) | |
tree | f32cc671633301754e0f8ad6eaa986a42d53588c /Completion/AIX | |
parent | 7019318294a641d99d68b5301d4aaef16524f95b (diff) | |
download | zsh-82c2f85c42ba82f2ecac42f49c2f81a95dee63c6.tar.gz zsh-82c2f85c42ba82f2ecac42f49c2f81a95dee63c6.tar.xz zsh-82c2f85c42ba82f2ecac42f49c2f81a95dee63c6.zip |
moved from Completion/AIX/_lsdev
Diffstat (limited to 'Completion/AIX')
-rw-r--r-- | Completion/AIX/Command/_lsdev | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Completion/AIX/Command/_lsdev b/Completion/AIX/Command/_lsdev new file mode 100644 index 000000000..1bb1a8802 --- /dev/null +++ b/Completion/AIX/Command/_lsdev @@ -0,0 +1,38 @@ +#compdef lsdev + +local curcontext="${curcontext}" state line expl + +_arguments -C \ + '(-P)-C[list info about device in customized devices object class]' \ + '(-C -l)-P[list info about device in predefined object class]' \ + '-c[specify a device class]:device class:->class' \ + '-f[read flags from file]:files:_files' \ + '-F[specify output format]:format:->columnname' \ + '-H[display headers above columns]' \ + '-h[display command usage]' \ + '(-P)-l[specify device logical name]:device logical name' \ + '-r[display set of values in a column]:columnname:->columnname' \ + '(-P)-S[specify a device state]:device state:(Available Defined Stopped)' \ + '-s[specify a device subclass]:device subclass:->subclass' \ + '-t[specify a device type name]:device type name:->devtype' && return 0 + +case $state in + class) + _wanted devclass expl 'device class names' \ + compadd - $(lsdev ${words[(r)-[CP]]:--P} -r class) + ;; + subclass) + _wanted devsubclass expl 'device subclass names' \ + compadd - $(lsdev ${words[(r)-[CP]]:--P} -r subclass) + ;; + devtype) + _wanted devtype expl 'device type names' \ + compadd - $(lsdev ${words[(r)-[CP]]:--P} -r type) + ;; + columnname) + [[ $words[CURRENT-1] = -F ]] && compset -P '*[^a-zA-Z]' + _wanted devcolumnname expl 'column names' \ + compadd - ${(s: :)words[(r)-C]:+name status location} \ + class subclass description type + ;; +esac |