about summary refs log tree commit diff
path: root/Completion/Unix/Command/_dd
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-08-06 14:42:02 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-08-06 14:42:02 +0000
commit68a8685146f824bea4698cfb9110c26a771ac3e8 (patch)
tree8402978e6ca9f514e75cd73bde862512c8f99125 /Completion/Unix/Command/_dd
parent0c3f0b47bff6279c8601f3313144db6d2d1ee980 (diff)
downloadzsh-68a8685146f824bea4698cfb9110c26a771ac3e8.tar.gz
zsh-68a8685146f824bea4698cfb9110c26a771ac3e8.tar.xz
zsh-68a8685146f824bea4698cfb9110c26a771ac3e8.zip
share descriptions for long/short opts in more completions and other changes
Diffstat (limited to 'Completion/Unix/Command/_dd')
-rw-r--r--Completion/Unix/Command/_dd30
1 files changed, 12 insertions, 18 deletions
diff --git a/Completion/Unix/Command/_dd b/Completion/Unix/Command/_dd
index 419fc1a7a..27cff1198 100644
--- a/Completion/Unix/Command/_dd
+++ b/Completion/Unix/Command/_dd
@@ -1,20 +1,14 @@
 #compdef dd
 
-local expl
-
-if compset -P 1 'conv='; then
-  # If there's a comma present, ignore up to the last one.  The
-  # test alone will have that effect.
-  compset -p '*,'
-  _wanted values expl conversion \
-      compadd -qS, ascii ebcdic ibm block unblock lcase ucase swab noerror sync
-elif compset -P 1 'if='; then
-  _description files expl 'input file'
-  _tilde_files "$expl[@]"
-elif compset -P 1 'of='; then
-  _description files expl 'output file'
-  _tilde_files "$expl[@]"
-else
-  _wanted values expl option \
-      compadd -S '=' if of ibs obs bs cbs skip files seek count conv
-fi
+_values -S '=' 'option' \
+  'if[specify input file]:input file:_tilde_files' \
+  'of[specify output file]:output file:_tilde_files' \
+  'ibs[input block size]:block size (bytes)' \
+  'obs[output block size]:block size (bytes)' \
+  'bs[block size]:block size (bytes)' \
+  'cbs[conversion buffer size]:buffer size (bytes)' \
+  'skip[input blocks initially skipped]:blocks' \
+  'seek[output blocks initially skipped]:blocks' \
+  'files[specify number of input files to copy and concatenate]:number of files' \
+  'count[number of input blocks to copy]:blocks' \
+  'conv[specify conversions to apply]:conversion:_values -s , "conversion" ascii ebcdic ibm block unblock lcase ucase swab noerror sync'