1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00
zsh/Completion/User/_dd
1999-08-19 11:18:05 +00:00

21 lines
589 B
Text

#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 '*,'
_description expl conversion
compadd "$expl[@]" -qS, -q \
ascii ebcdic ibm block unblock lcase ucase swab noerror sync
elif compset -P 1 'if\='; then
_description expl 'input file'
_files "$expl[@]"
elif compset -P 1 'of\='; then
_description expl 'output file'
_files "$expl[@]"
else
_description expl option
compadd "$expl[@]" -S '=' if of ibs obs bs cbs skip files seek count conv
fi