diff options
author | Dmitriy Morozov | 2015-06-19 10:22:03 -0700 |
---|---|---|
committer | Dmitriy Morozov | 2015-06-19 10:22:03 -0700 |
commit | f1cf83419c3134a55d579f11e37b452b7d519f0c (patch) | |
tree | 7e8838f6f39aa3bba5e6a25da5c68f08dea31b92 /ipe.bash-completion | |
download | aur-f1cf83419c3134a55d579f11e37b452b7d519f0c.tar.gz |
Initial commit for AUR4; lost all previous history because of .SRCINFO requirement
Diffstat (limited to 'ipe.bash-completion')
-rw-r--r-- | ipe.bash-completion | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipe.bash-completion b/ipe.bash-completion new file mode 100644 index 000000000000..6ccc11e01988 --- /dev/null +++ b/ipe.bash-completion @@ -0,0 +1,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 |