10
prev=${COMP_WORDS[COMP_CWORD-1]}
13
-@(f|t|-@(from|to)-code))
14
COMPREPLY=( $( compgen -W \
15
'$( iconv --list | sed -e "s@//@@;" )' -- "$cur" ) )
21
if [[ "$cur" = -* ]]; then
22
COMPREPLY=( $( compgen -W '--from-code -f --to-code -t --list
23
--output -o --verbose' -- "$cur" ) )
27
complete -F _iconv $default iconv
32
# sh-indent-comment: t
33
# indent-tabs-mode: nil
35
# ex: ts=4 sw=4 et filetype=sh