1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-24 21:11:02 +02:00
zsh/Functions/Completion/__dd
1999-04-15 18:15:04 +00:00

13 lines
395 B
Text

#function dd
if [[ -iprefix conv= ]]; then
# If there's a comma present, ignore up to the last one. The
# test alone will have that effect.
[[ -string , ]]
complist -S, -q \
-k '(ascii ebcdic ibm block unblock lcase ucase swab noerror sync)'
elif [[ -iprefix 'if=' || -iprefix 'of=' ]]; then
__files
else
complist -S '=' -k '(if of ibs obs bs cbs skip files seek count conv)'
fi