diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-05-03 02:49:38 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-05-03 02:49:38 +0000 |
commit | 26785dfe6b5e36e520934585f91aaa44704bba75 (patch) | |
tree | 40f0c08763ae2cf9acff5fd2d578fb5ce197f7c8 /Completion/AIX/Type | |
parent | 4bf9b6583911e3c2163dd6317e32e2a0a76dc0ee (diff) | |
download | zsh-26785dfe6b5e36e520934585f91aaa44704bba75.tar.gz zsh-26785dfe6b5e36e520934585f91aaa44704bba75.tar.xz zsh-26785dfe6b5e36e520934585f91aaa44704bba75.zip |
Merge from trunk of files in 21315.
Diffstat (limited to 'Completion/AIX/Type')
-rw-r--r-- | Completion/AIX/Type/_logical_volumes | 15 | ||||
-rw-r--r-- | Completion/AIX/Type/_object_classes | 6 | ||||
-rw-r--r-- | Completion/AIX/Type/_physical_volumes | 6 | ||||
-rw-r--r-- | Completion/AIX/Type/_volume_groups | 5 |
4 files changed, 32 insertions, 0 deletions
diff --git a/Completion/AIX/Type/_logical_volumes b/Completion/AIX/Type/_logical_volumes new file mode 100644 index 000000000..bbfa09238 --- /dev/null +++ b/Completion/AIX/Type/_logical_volumes @@ -0,0 +1,15 @@ +#autoload + +local expl list names disp sep + +list=( $(lsvg -l $(lsvg)|sed -e '2d'|awk '/[^:]* / {if ( $7 != "N/A" ) print $1 ":" $7; else print $1}' ) ) +names=(${list%%:*}) +if zstyle -T ":completion:${curcontext}:" verbose; then + zstyle -s ":completion:${curcontext}:" list-separator sep || sep=-- + zformat -a list " $sep " $list + disp=(-d list) +else + disp=() +fi +_wanted logicalvolumes expl 'logical volume' \ + compadd "$disp[@]" "$@" - "$names[@]" diff --git a/Completion/AIX/Type/_object_classes b/Completion/AIX/Type/_object_classes new file mode 100644 index 000000000..a0d669ca3 --- /dev/null +++ b/Completion/AIX/Type/_object_classes @@ -0,0 +1,6 @@ +#compdef odmget odmshow odme + +local expl + +_wanted objectclasses expl 'object class' \ + _files -W ${ODMDIR:-/etc/objrepos} -g '^*.vc(-.)' "$@" - diff --git a/Completion/AIX/Type/_physical_volumes b/Completion/AIX/Type/_physical_volumes new file mode 100644 index 000000000..fd31edd09 --- /dev/null +++ b/Completion/AIX/Type/_physical_volumes @@ -0,0 +1,6 @@ +#autoload + +local expl + +_wanted physicalvolumes expl 'physical volume' \ + compadd "$@" - $(lsdev -C -c disk -S a -F name) diff --git a/Completion/AIX/Type/_volume_groups b/Completion/AIX/Type/_volume_groups new file mode 100644 index 000000000..8b8bebfa6 --- /dev/null +++ b/Completion/AIX/Type/_volume_groups @@ -0,0 +1,5 @@ +#autoload + +local expl + +_wanted volumegroups expl 'volume group' compadd "$@" - $(lsvg) |