about summary refs log tree commit diff
path: root/Completion/User/_dd
blob: 86a47b1abfed7827f57d8e5ef022f965b23e5601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#defcomp 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 , ]]
  compgen -S, -q \
  -k '(ascii ebcdic ibm block unblock lcase ucase swab noerror sync)'
elif [[ -iprefix 'if=' || -iprefix 'of=' ]]; then
  _files
else
  compgen -S '=' -k '(if of ibs obs bs cbs skip files seek count conv)'
fi