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
|
@ -2,9 +2,15 @@
|
|||
|
||||
_python_modules()
|
||||
{
|
||||
COMPREPLY+=( $( compgen -W \
|
||||
"$( ${1:-python} ${BASH_SOURCE[0]%/*}/../helpers/python $cur \
|
||||
2>/dev/null )" -- "$cur" ) )
|
||||
COMPREPLY+=( $(compgen -W \
|
||||
"$(${1:-python} ${BASH_SOURCE[0]%/*}/../helpers/python $cur \
|
||||
2>/dev/null)" -- "$cur") )
|
||||
}
|
||||
|
||||
_python_warning_actions()
|
||||
{
|
||||
COMPREPLY+=( $(compgen -W "ignore default all module once error" \
|
||||
${prefix:+-P "$prefix"} -- "$cur") )
|
||||
}
|
||||
|
||||
_python()
|
||||
|
@ -21,26 +27,25 @@ _python()
|
|||
esac
|
||||
|
||||
case $prev in
|
||||
-'?'|-h|--help|-V|--version|-c|-X)
|
||||
--help|--version|-!(-*)[?hVcX])
|
||||
return
|
||||
;;
|
||||
-m)
|
||||
-!(-*)m)
|
||||
_python_modules "$1"
|
||||
return
|
||||
;;
|
||||
-Q)
|
||||
COMPREPLY=( $( compgen -W "old new warn warnall" -P "$prefix" \
|
||||
-- "$cur" ) )
|
||||
-!(-*)Q)
|
||||
COMPREPLY=( $(compgen -W "old new warn warnall" -P "$prefix" \
|
||||
-- "$cur") )
|
||||
return
|
||||
;;
|
||||
-W)
|
||||
COMPREPLY=( $( compgen -W "ignore default all module once error" \
|
||||
-P "$prefix" -- "$cur" ) )
|
||||
-!(-*)W)
|
||||
_python_warning_actions
|
||||
return
|
||||
;;
|
||||
--jit)
|
||||
# TODO: quite a few others, parse from "--jit help" output?
|
||||
COMPREPLY=( $( compgen -W "help off" -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W "help off" -- "$cur") )
|
||||
return
|
||||
;;
|
||||
!(?(*/)python*([0-9.])|?(*/)pypy*([0-9.])|-?))
|
||||
|
@ -50,12 +55,12 @@ _python()
|
|||
|
||||
|
||||
# if -c or -m is already given, complete all kind of files.
|
||||
if [[ "${words[@]::$cword}" == *\ -[cm]\ * ]]; then
|
||||
if [[ "${words[*]::$cword}" == *\ -[cm]\ * ]]; then
|
||||
_filedir
|
||||
elif [[ "$cur" != -* ]]; then
|
||||
_filedir 'py?([cowz])'
|
||||
else
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1" -h)' -- "$cur") )
|
||||
fi
|
||||
} &&
|
||||
complete -F _python python python2 python3 pypy pypy3 micropython
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue