]> git.lyx.org Git - features.git/blob - lib/scripts/bash_completion
8236beb1a6cbb2c0b7579924d835a7805bb2fb93
[features.git] / lib / scripts / bash_completion
1 # lyx(1) completion 
2 # Modified inkscape template of allali@univ-mlv.fr
3 # by cengique@users.sf.net
4
5 have lyx &&
6 _lyx()
7 {
8         local cur
9
10         COMPREPLY=()
11         cur=${COMP_WORDS[COMP_CWORD]}
12
13         if [[ "$cur" == -* ]]; then
14                 COMPREPLY=( $( compgen -W '-help -userdir -sysdir \
15                                 -geometry -dbg -x --execute -e --export \
16                                 -i --import -version -batch' -- $cur ) ) 
17         else
18                 _filedir '@(lyx)'
19         fi
20
21 }
22 [ "${have:-}" ] && complete -F _lyx $filenames lyx