1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
have ipe && _ipe() { local cur xspec COMPREPLY=() _get_comp_words_by_ref cur xspec="!*.@(ipe|pdf|eps)" _expand || return 0 COMPREPLY=( $( compgen -f -X "$xspec" -- "$cur" ) \ $( compgen -d -- "$cur" ) ) } && complete -F _ipe -o filenames ipe