summary refs log tree commit diff
path: root/Functions/Completion/__dd
blob: c0e04de7569a070494fda9d59bb1193e47ed6a26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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