Remove use of special vars nn* and dn* in mtoinf.
[maxima.git] / desktopintegration / xmaxima
blob59bd3f49eeadd0d227a4d93e9408e44e1c164bba
1 # maxima(1) completion                                     -*- shell-script -*-
3 _xmaxima()
5     local cur prev words cword split
6     _init_completion -s || return
8     case $prev in
9         -help|-h)
10             return
11             ;;
12         -url)
13             _filedir '@(html)'
14             return
15             ;;
16         -use-version|-u)
17             return
18             ;;
19         -lisp|-l)
20             return
21             ;;
22     esac
24     $split && return 0
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
31     else
32         _filedir '@(tcl)'
33     fi
34 } && complete -F _xmaxima xmaxima