summarylogtreecommitdiffstats
path: root/ipe.bash-completion
blob: 6ccc11e019885a1bf26ba5aed5bd7bb9af540738 (plain)
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