mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-19 21:03:25 -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
|
@ -6,51 +6,56 @@ _ssh_keygen()
|
|||
_init_completion -n = || return
|
||||
|
||||
case $prev in
|
||||
-a|-b|-C|-I|-J|-j|-M|-N|-n|-r|-P|-S|-V|-W|-z)
|
||||
-*[abCIJjMNnrPSVWz])
|
||||
return
|
||||
;;
|
||||
-E)
|
||||
COMPREPLY=( $( compgen -W 'md5 sha256' -- "$cur" ) )
|
||||
-*E)
|
||||
COMPREPLY=( $(compgen -W 'md5 sha256' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
-F|-R)
|
||||
-*[FR])
|
||||
# TODO: trim this down to actual entries in known hosts files
|
||||
_known_hosts_real -- "$cur"
|
||||
return
|
||||
;;
|
||||
-D)
|
||||
-*D)
|
||||
_filedir so
|
||||
return
|
||||
;;
|
||||
-f|-G|-K|-s|-T)
|
||||
-*[fGKsT])
|
||||
_filedir
|
||||
return
|
||||
;;
|
||||
-m)
|
||||
COMPREPLY=( $( compgen -W 'PEM PKCS8 RFC4716' -- "$cur" ) )
|
||||
-*m)
|
||||
COMPREPLY=( $(compgen -W 'PEM PKCS8 RFC4716' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
-O)
|
||||
-*O)
|
||||
if [[ $cur != *=* ]]; then
|
||||
COMPREPLY=( $( compgen -W 'clear force-command=
|
||||
COMPREPLY=( $(compgen -W 'clear force-command=
|
||||
no-agent-forwarding no-port-forwarding no-pty no-user-rc
|
||||
no-x11-forwarding permit-agent-forwarding
|
||||
permit-port-forwarding permit-pty permit-user-rc
|
||||
permit-x11-forwarding source-address=' -- "$cur" ) )
|
||||
permit-x11-forwarding source-address=' -- "$cur") )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
fi
|
||||
return
|
||||
;;
|
||||
-t)
|
||||
COMPREPLY=( $( compgen -W 'dsa ecdsa ed25519 rsa rsa1' -- "$cur" ) )
|
||||
-*t)
|
||||
local protocols=$(_xfunc ssh _ssh_query "$1" protocol-version)
|
||||
local types='dsa ecdsa ed25519 rsa'
|
||||
if [[ $protocols == *1* ]]; then
|
||||
types+=' rsa1'
|
||||
fi
|
||||
COMPREPLY=( $(compgen -W "$types" -- "$cur") )
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ $cur == -* ]]; then
|
||||
local opts=$( _parse_usage "$1" "-?" )
|
||||
[[ -z "$opts" ]] && opts=$( _parse_help "$1" "-?" ) # OpenSSH < 7
|
||||
COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
|
||||
local opts=$(_parse_usage "$1" "-?")
|
||||
[[ -z "$opts" ]] && opts=$(_parse_help "$1" "-?") # OpenSSH < 7
|
||||
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
|
||||
fi
|
||||
} &&
|
||||
complete -F _ssh_keygen ssh-keygen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue