1 # maxima(1) completion -*- shell-script -*-
5 local cur prev words cword split
6 _init_completion -s || return
26 if [[ "$cur" == -* ]]; then
27 local opts="$( _parse_help "$1" )"
28 [[ $opts ]] || opts="$( _parse_usage "$1" )"
29 COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
30 [[ $COMPREPLY == *= ]] && compopt -o nospace
34 } && complete -F _xmaxima xmaxima