about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:47:45 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:47:45 +0000
commit710e2115f965b64a03f230f422e616175e3c956b (patch)
tree60669f11f1be9cb7f4c021d06bf98bf0c1fb508b /Completion
parentd088cee51bcb81fe8c4f4983548b6f214cd6e907 (diff)
downloadzsh-710e2115f965b64a03f230f422e616175e3c956b.tar.gz
zsh-710e2115f965b64a03f230f422e616175e3c956b.tar.xz
zsh-710e2115f965b64a03f230f422e616175e3c956b.zip
moved from Completion/User/_dd
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_dd20
1 files changed, 20 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_dd b/Completion/Unix/Command/_dd
new file mode 100644
index 000000000..419fc1a7a
--- /dev/null
+++ b/Completion/Unix/Command/_dd
@@ -0,0 +1,20 @@
+#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