mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-07-31 12:00:11 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
|
@ -62,18 +62,23 @@ _java_classes()
|
|||
for i in ${classpath//:/ }; do
|
||||
if [[ "$i" == *.@(jar|zip) && -r $i ]]; then
|
||||
if type zipinfo &>/dev/null; then
|
||||
COMPREPLY+=( $( zipinfo -1 "$i" "$cur*" 2>/dev/null | \
|
||||
command grep '^[^$]*\.class$' ) )
|
||||
else
|
||||
COMPREPLY+=( $( jar tf "$i" "$cur" | \
|
||||
command grep '^[^$]*\.class$' ) )
|
||||
COMPREPLY+=( $(zipinfo -1 "$i" "$cur*" 2>/dev/null | \
|
||||
command grep '^[^$]*\.class$') )
|
||||
elif type unzip &>/dev/null; then
|
||||
# Last column, between entries consisting entirely of dashes
|
||||
COMPREPLY+=( $(unzip -lq "$i" "$cur*" 2>/dev/null | \
|
||||
awk '$NF ~ /^-+$/ { flag=!flag; next };
|
||||
flag && $NF ~ /^[^$]*\.class/ { print $NF }') )
|
||||
elif type jar &>/dev/null; then
|
||||
COMPREPLY+=( $(jar tf "$i" "$cur" | \
|
||||
command grep '^[^$]*\.class$') )
|
||||
fi
|
||||
|
||||
elif [[ -d $i ]]; then
|
||||
COMPREPLY+=(
|
||||
$( compgen -d -- "$i/$cur" | command sed -e "s|^$i/\(.*\)|\1.|" )
|
||||
$( compgen -f -X '!*.class' -- "$i/$cur" | \
|
||||
command sed -e '/\$/d' -e "s|^$i/||" )
|
||||
$(compgen -d -- "$i/$cur" | command sed -e "s|^$i/\(.*\)|\1.|")
|
||||
$(compgen -f -X '!*.class' -- "$i/$cur" | \
|
||||
command sed -e '/\$/d' -e "s|^$i/||")
|
||||
)
|
||||
[[ $COMPREPLY == *.class ]] || compopt -o nospace
|
||||
|
||||
|
@ -102,12 +107,12 @@ _java_packages()
|
|||
# parse each sourcepath element for packages
|
||||
for i in ${sourcepath//:/ }; do
|
||||
if [[ -d $i ]]; then
|
||||
COMPREPLY+=( $( command ls -F -d $i/$cur* 2>/dev/null | \
|
||||
command sed -e 's|^'$i'/||' ) )
|
||||
COMPREPLY+=( $(command ls -F -d $i/$cur* 2>/dev/null | \
|
||||
command sed -e 's|^'$i'/||') )
|
||||
fi
|
||||
done
|
||||
# keep only packages
|
||||
COMPREPLY=( $( tr " " "\n" <<<"${COMPREPLY[@]}" | command grep "/$" ) )
|
||||
COMPREPLY=( $(tr " " "\n" <<<"${COMPREPLY[@]}" | command grep "/$") )
|
||||
# remove packages extension
|
||||
COMPREPLY=( ${COMPREPLY[@]%/} )
|
||||
# convert path syntax to package syntax
|
||||
|
@ -142,7 +147,7 @@ _java()
|
|||
case $cur in
|
||||
# standard option completions
|
||||
-verbose:*)
|
||||
COMPREPLY=( $( compgen -W 'class gc jni' -- "${cur#*:}" ) )
|
||||
COMPREPLY=( $(compgen -W 'class gc jni' -- "${cur#*:}") )
|
||||
return
|
||||
;;
|
||||
-javaagent:*)
|
||||
|
@ -166,17 +171,17 @@ _java()
|
|||
return
|
||||
;;
|
||||
-Xcheck:*)
|
||||
COMPREPLY=( $( compgen -W 'jni' -- "${cur#*:}" ) )
|
||||
COMPREPLY=( $(compgen -W 'jni' -- "${cur#*:}") )
|
||||
return
|
||||
;;
|
||||
-Xgc:*)
|
||||
COMPREPLY=( $( compgen -W 'singlecon gencon singlepar genpar' \
|
||||
-- "${cur#*:}" ) )
|
||||
COMPREPLY=( $(compgen -W 'singlecon gencon singlepar genpar' \
|
||||
-- "${cur#*:}") )
|
||||
return
|
||||
;;
|
||||
-Xgcprio:*)
|
||||
COMPREPLY=( $( compgen -W 'throughput pausetime deterministic' \
|
||||
-- "${cur#*:}" ) )
|
||||
COMPREPLY=( $(compgen -W 'throughput pausetime deterministic' \
|
||||
-- "${cur#*:}") )
|
||||
return
|
||||
;;
|
||||
-Xloggc:*|-Xverboselog:*)
|
||||
|
@ -185,16 +190,16 @@ _java()
|
|||
return
|
||||
;;
|
||||
-Xshare:*)
|
||||
COMPREPLY=( $( compgen -W 'auto off on' -- "${cur#*:}" ) )
|
||||
COMPREPLY=( $(compgen -W 'auto off on' -- "${cur#*:}") )
|
||||
return
|
||||
;;
|
||||
-Xverbose:*)
|
||||
COMPREPLY=( $( compgen -W 'memory load jni cpuinfo codegen opt
|
||||
gcpause gcreport' -- "${cur#*:}" ) )
|
||||
COMPREPLY=( $(compgen -W 'memory load jni cpuinfo codegen opt
|
||||
gcpause gcreport' -- "${cur#*:}") )
|
||||
return
|
||||
;;
|
||||
-Xverify:*)
|
||||
COMPREPLY=( $( compgen -W 'all none remote' -- "${cur#*:}" ) )
|
||||
COMPREPLY=( $(compgen -W 'all none remote' -- "${cur#*:}") )
|
||||
return
|
||||
;;
|
||||
# the rest that we have no completions for
|
||||
|
@ -211,9 +216,9 @@ _java()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
|
||||
[[ $cur == -X* ]] && \
|
||||
COMPREPLY+=( $( compgen -W '$( _parse_help "$1" -X )' -- "$cur" ) )
|
||||
COMPREPLY+=( $(compgen -W '$(_parse_help "$1" -X)' -- "$cur") )
|
||||
else
|
||||
if [[ "$prev" == -jar ]]; then
|
||||
# jar file completion
|
||||
|
@ -271,7 +276,7 @@ _javadoc()
|
|||
fi
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
|
||||
else
|
||||
# source files completion
|
||||
_filedir java
|
||||
|
@ -304,16 +309,16 @@ _javac()
|
|||
# For some reason there may be -g:none AND -g:{lines,source,vars};
|
||||
# convert the none case to the curly brace format so it parses like
|
||||
# the others.
|
||||
local opts=$( "$1" $helpopt 2>&1 | command sed -e 's/-g:none/-g:{none}/' -ne \
|
||||
"s/^[[:space:]]*${cur%%:*}:{\([^}]\{1,\}\)}.*/\1/p" )
|
||||
COMPREPLY=( $( compgen -W "${opts//,/ }" -- "${cur#*:}" ) )
|
||||
local opts=$("$1" $helpopt 2>&1 | command sed -e 's/-g:none/-g:{none}/' -ne \
|
||||
"s/^[[:space:]]*${cur%%:*}:{\([^}]\{1,\}\)}.*/\1/p")
|
||||
COMPREPLY=( $(compgen -W "${opts//,/ }" -- "${cur#*:}") )
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
|
||||
[[ $cur == -X* ]] && \
|
||||
COMPREPLY+=( $( compgen -W '$( _parse_help "$1" -X )' -- "$cur" ) )
|
||||
COMPREPLY+=( $(compgen -W '$(_parse_help "$1" -X)' -- "$cur") )
|
||||
else
|
||||
# source files completion
|
||||
_filedir java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue