mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-20 21:33:21 -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
|
@ -3,34 +3,62 @@
|
|||
_xfreerdp()
|
||||
{
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
_init_completion -n : || return
|
||||
|
||||
case $prev in
|
||||
case $prev in # old/dash syntax
|
||||
-k)
|
||||
COMPREPLY=( $( compgen -W "$($1 --kbd-list | \
|
||||
awk '/^0x/ {print $1}')" -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$("$1" --kbd-list |
|
||||
awk "/^0x/ { print \$1 }")' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
-a)
|
||||
COMPREPLY=( $( compgen -W '8 15 16 24 32' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '8 15 16 24 32' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
-x)
|
||||
COMPREPLY=( $( compgen -W 'b broadband m modem l lan' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'broadband modem lan' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
--plugin)
|
||||
COMPREPLY=( $( compgen -W 'cliprdr rdpsnd rdpdr' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'cliprdr rdpsnd rdpdr' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-u -d -s -c -p -n -t -g -a -z -f -x -O -o -k
|
||||
--kbd-list -h --plugin --data' -- "$cur" ) )
|
||||
case $cur in # new/slash syntax
|
||||
/kbd:*)
|
||||
COMPREPLY=( $(compgen -W '$("$1" /kbd-list |
|
||||
awk "/^0x/ { print \$1 }")' -- "${cur#/kbd:}") )
|
||||
return
|
||||
;;
|
||||
/bpp:*)
|
||||
COMPREPLY=( $(compgen -W '8 15 16 24 32' -- "${cur#/bpp:}") )
|
||||
return
|
||||
;;
|
||||
/*:*|/help|/version|-h|--help|--version)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$cur" == /* ]]; then
|
||||
COMPREPLY=( $(compgen -W '$("$1" --help |
|
||||
awk "\$1 ~ /^\\// && \$1 !~ /^.(flag\$|option:)/ { sub(\":.*\",\":\",\$1); print \$1 }")' \
|
||||
-- "$cur") )
|
||||
[[ $COMPREPLY == *: ]] && compopt -o nospace
|
||||
elif [[ "$cur" == [+-]* ]]; then
|
||||
local char=${cur:0:1}
|
||||
local help="$($1 --help)"
|
||||
if [[ "$help" == */help* ]]; then # new/slash syntax
|
||||
COMPREPLY=( $(compgen -W '$(awk "
|
||||
\$1 ~ /^[+-]/ && \$1 !~ /^.toggle\$/ { sub(\"^.\",\"$char\",\$1); print \$1 }
|
||||
" <<<"$help")' -- "$cur") )
|
||||
else # old/dash syntax
|
||||
COMPREPLY=( $(_parse_help - <<<"$help") )
|
||||
COMPREPLY=( $(compgen -W '${COMPREPLY[@]%:}' -- "$cur") )
|
||||
fi
|
||||
else
|
||||
COMPREPLY=( $( compgen -W "$(awk '{print $1}' ~/.freerdp/known_hosts \
|
||||
2>/dev/null)" -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W "$(awk '{print $1}' ~/.freerdp/known_hosts \
|
||||
2>/dev/null)" -- "$cur") )
|
||||
fi
|
||||
|
||||
} &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue