Blame | Last modification | View Log | RSS feed
_javaws(){local cur prev opts basecur="${COMP_WORDS[COMP_CWORD]}"prev="${COMP_WORDS[COMP_CWORD-1]}"# JavaWs Optionsopts="-version -arg -param -property -update -verbose -nosecurity -noupdate -headless -strict -xml -allowredirect -Xnofork -Xignoreheaders -Xoffline -Xtrustnone -jnlp -html -browser -startuptracker -about -viewer -Xclearcache -Xcacheids -license -help -Xtrustall"if [[ $prev == *"-jnlp" || $prev == *"-html" ]] ; thenCOMPREPLY=($(compgen -f -X "!*" -- ${cur}))if [ -d "$COMPREPLY" ] ; thenCOMPREPLY="$COMPREPLY/"fireturn 0fiif [[ $cur == "" ]] ; thenCOMPREPLY=($(compgen -W "aa_file_or_url ${opts} zz_file_or_url" -- ${cur}))return 0fiif [[ $cur == "-"* ]] ; thenCOMPREPLY=($(compgen -W "${opts}" -- ${cur}))return 0elseCOMPREPLY=($(compgen -f -X "!*" -- ${cur}))if [ -d "$COMPREPLY" ] ; thenCOMPREPLY="$COMPREPLY/"fireturn 0fi}complete -F _javaws javaws