about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/AIX/.distfiles4
-rw-r--r--Completion/AIX/_floppy5
-rw-r--r--Completion/AIX/_lsdev38
-rw-r--r--Completion/AIX/_lslv8
-rw-r--r--Completion/AIX/_lspv9
-rw-r--r--Completion/AIX/_lsvg10
-rw-r--r--Completion/AIX/_physical_volumes6
-rw-r--r--Completion/AIX/_smit19
-rw-r--r--Completion/AIX/_volume_groups5
9 files changed, 104 insertions, 0 deletions
diff --git a/Completion/AIX/.distfiles b/Completion/AIX/.distfiles
new file mode 100644
index 000000000..e1b2aa8ea
--- /dev/null
+++ b/Completion/AIX/.distfiles
@@ -0,0 +1,4 @@
+DISTFILES_SRC='
+    .distfiles
+    _floppy _lsdev _lslv _lspv _lsvg _physical_volumes _smit _volume_groups
+'
diff --git a/Completion/AIX/_floppy b/Completion/AIX/_floppy
new file mode 100644
index 000000000..7c030f9bd
--- /dev/null
+++ b/Completion/AIX/_floppy
@@ -0,0 +1,5 @@
+#compdef dosread dosdel
+
+local expl
+
+_wanted floppyfiles expl 'files on floppy' compadd - ${$(dosdir)[1,-5]:l}
diff --git a/Completion/AIX/_lsdev b/Completion/AIX/_lsdev
new file mode 100644
index 000000000..0d249f440
--- /dev/null
+++ b/Completion/AIX/_lsdev
@@ -0,0 +1,38 @@
+#compdef lsdev
+
+local 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'
+
+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
diff --git a/Completion/AIX/_lslv b/Completion/AIX/_lslv
new file mode 100644
index 000000000..760c8cc3b
--- /dev/null
+++ b/Completion/AIX/_lslv
@@ -0,0 +1,8 @@
+#compdef lslv
+
+_arguments -C -s \
+  '(-l -m)-p[display logical volume allocation map for the physical volume]:pv:_physical_volumes' \
+  '(-p)-l[list physical volumes in logical volume]' \
+  '(-p)-m[list partition numbers]' \
+  '-n[accesses information from the descriptor area of physical volume]:pv:_physical_volumes' \
+  '1:lv:_logical_volumes'
diff --git a/Completion/AIX/_lspv b/Completion/AIX/_lspv
new file mode 100644
index 000000000..a89e07af7
--- /dev/null
+++ b/Completion/AIX/_lspv
@@ -0,0 +1,9 @@
+#compdef lspv
+
+_arguments -C -s \
+  '(-p -M)-l[list logical volumns on physical volume]' \
+  '(-l -M)-p[list partitions on physical volume]' \
+  '(-l -p)-M[list mapping of physical and logical partition numbers]' \
+  '-n[specify physical volume to access variable descriptor from]:physical volume:_physical_volumes' \
+  '-v[specify volume group id to access info based on]:volume group id' \
+  '1:physical volume:_physical_volumes'
diff --git a/Completion/AIX/_lsvg b/Completion/AIX/_lsvg
new file mode 100644
index 000000000..c5b9a1584
--- /dev/null
+++ b/Completion/AIX/_lsvg
@@ -0,0 +1,10 @@
+#compdef lsvg
+
+_arguments -C -s \
+  '(-i -l -M -p)-o[lists only active volume groups]' \
+  '(-i -l -M -p)-n[specify physical volume to access variable descriptor from]:physical volume:_physical_volumes' \
+  '(-o -n)-i[reads volume group names from standard input]' \
+  '(-o -n -M -p)-l[list logical volumes in volume group]' \
+  '(-o -n -l -p)-M[list mapping of physical and logical partition numbers]' \
+  '(-o -n -l -M)-p[list physical volumes used by volume group]' \
+  '*:volume groups:_volume_groups'
diff --git a/Completion/AIX/_physical_volumes b/Completion/AIX/_physical_volumes
new file mode 100644
index 000000000..1b69d6217
--- /dev/null
+++ b/Completion/AIX/_physical_volumes
@@ -0,0 +1,6 @@
+#autoload
+
+local expl
+
+_wanted physicalvolumes expl 'physical volumes' \
+    compadd - $(lsdev -C -c disk -S a -F name)
diff --git a/Completion/AIX/_smit b/Completion/AIX/_smit
new file mode 100644
index 000000000..18a901148
--- /dev/null
+++ b/Completion/AIX/_smit
@@ -0,0 +1,19 @@
+#compdef smit smitty
+
+_arguments -C \
+  '-s[specify smit.script file]:smit.script file:_files' \
+  '-l[specify smit.log file]:smit.log file:_files' \
+  '-C[use curses interface]' \
+  '-D[debug mode]' \
+  '-d[FastPath is dialogue screen]' \
+  '-f[allow redirection of stdin and stdout]' \
+  '-h[display help/usage message]' \
+  '-M[start smit in windows mode]' \
+  '-m[FastPath is menu screen]' \
+  '-n[FastPath is selector screen]' \
+  '-o[alternate SMIT/ODM database]' \
+  '-t[generate trace information]' \
+  '-v[verbose]' \
+  '-x[do not run any execute commands]' \
+  '-X[do not run any commands]'
+  
diff --git a/Completion/AIX/_volume_groups b/Completion/AIX/_volume_groups
new file mode 100644
index 000000000..33752ca2a
--- /dev/null
+++ b/Completion/AIX/_volume_groups
@@ -0,0 +1,5 @@
+#autoload
+
+local expl
+
+_wanted physicalvolumes expl 'physical volumes' compadd - $(lsvg)