# iftop(8) completionhave iftop &&_iftop(){COMPREPLY=()local cur prev_get_comp_words_by_ref cur prevcase $prev in-h|-f|-F|-m)return 0;;-i)_available_interfaces -areturn 0;;-c)_filedirreturn 0;;esacCOMPREPLY=( $( compgen -W '-h -n -N -p -P -b -B -i -f -F -c -m' \-- "$cur" ) )} &&complete -F _iftop iftop# Local variables:# mode: shell-script# sh-basic-offset: 4# sh-indent-comment: t# indent-tabs-mode: nil# End:# ex: ts=4 sw=4 et filetype=sh