fix indentation
This commit is contained in:
parent
39a143e083
commit
41746f0bcc
123
contrib/ssh
123
contrib/ssh
@ -15,57 +15,66 @@ _ssh()
|
|||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
-@(F|i|S))
|
-@(F|i|S))
|
||||||
_filedir
|
_filedir
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-c)
|
-c)
|
||||||
COMPREPLY=( $( compgen -W '3des-cbc aes128-cbc aes192-cbc \
|
COMPREPLY=( $( compgen -W '3des-cbc aes128-cbc \
|
||||||
aes256-cbc aes128-ctr aes192-ctr aes256-ctr arcfour128 \
|
aes192-cbc aes256-cbc aes128-ctr aes192-ctr \
|
||||||
arcfour256 arcfour blowfish-cbc cast128-cbc' -- $cur ) )
|
aes256-ctr arcfour128 arcfour256 arcfour \
|
||||||
return 0
|
blowfish-cbc cast128-cbc' -- $cur ) )
|
||||||
;;
|
return 0
|
||||||
-c)
|
;;
|
||||||
COMPREPLY=( $( compgen -W 'hmac-md5 hmac-sha1 umac-64@openssh.com \
|
-c)
|
||||||
hmac-ripemd160 hmac-sha1-96 hmac-md5-96' -- $cur ) )
|
COMPREPLY=( $( compgen -W 'hmac-md5 hmac-sha1 \
|
||||||
return 0
|
umac-64@openssh.com hmac-ripemd160 \
|
||||||
;;
|
hmac-sha1-96 hmac-md5-96' -- $cur ) )
|
||||||
-l)
|
return 0
|
||||||
COMPREPLY=( $( compgen -u -- $cur ) )
|
;;
|
||||||
return 0
|
-l)
|
||||||
;;
|
COMPREPLY=( $( compgen -u -- $cur ) )
|
||||||
-o)
|
return 0
|
||||||
COMPREPLY=( $( compgen -W 'AddressFamily BatchMode BindAddress \
|
;;
|
||||||
ChallengeResponseAuthentication CheckHostIP Cipher Ciphers \
|
-o)
|
||||||
ClearAllForwardings Compression CompressionLevel \
|
COMPREPLY=( $( compgen -W 'AddressFamily BatchMode \
|
||||||
ConnectionAttempts ConnectTimeout ControlMaster ControlPath \
|
BindAddress ChallengeResponseAuthentication \
|
||||||
DynamicForward EscapeChar ExitOnForwardFailure ForwardAgent \
|
CheckHostIP Cipher Ciphers ClearAllForwardings \
|
||||||
ForwardX11 ForwardX11Trusted GatewayPorts GlobalKnownHostsFile \
|
Compression CompressionLevel \
|
||||||
GSSAPIAuthentication GSSAPIDelegateCredentials HashKnownHosts \
|
ConnectionAttempts ConnectTimeout \
|
||||||
Host HostbasedAuthentication HostKeyAlgorithms HostKeyAlias \
|
ControlMaster ControlPath DynamicForward \
|
||||||
HostName IdentityFile IdentitiesOnly KbdInteractiveDevices \
|
EscapeChar ExitOnForwardFailure ForwardAgent \
|
||||||
LocalCommand LocalForward LogLevel MACs \
|
ForwardX11 ForwardX11Trusted GatewayPorts \
|
||||||
NoHostAuthenticationForLocalhost NumberOfPasswordPrompts \
|
GlobalKnownHostsFile GSSAPIAuthentication \
|
||||||
PasswordAuthentication PermitLocalCommand Port \
|
GSSAPIDelegateCredentials HashKnownHosts Host \
|
||||||
PreferredAuthentications Protocol ProxyCommand \
|
HostbasedAuthentication HostKeyAlgorithms \
|
||||||
PubkeyAuthentication RekeyLimit RemoteForward \
|
HostKeyAlias HostName IdentityFile \
|
||||||
RhostsRSAAuthentication RSAAuthentication SendEnv \
|
IdentitiesOnly KbdInteractiveDevices \
|
||||||
ServerAliveInterval ServerAliveCountMax SmartcardDevice \
|
LocalCommand LocalForward LogLevel MACs \
|
||||||
StrictHostKeyChecking TCPKeepAlive Tunnel TunnelDevice \
|
NoHostAuthenticationForLocalhost \
|
||||||
UsePrivilegedPort User UserKnownHostsFile VerifyHostKeyDNS \
|
NumberOfPasswordPrompts PasswordAuthentication \
|
||||||
VisualHostKey XAuthLocation' -- $cur ) )
|
PermitLocalCommand Port \
|
||||||
return 0
|
PreferredAuthentications Protocol \
|
||||||
;;
|
ProxyCommand PubkeyAuthentication RekeyLimit \
|
||||||
-w)
|
RemoteForward RhostsRSAAuthentication \
|
||||||
_available_interfaces
|
RSAAuthentication SendEnv ServerAliveInterval \
|
||||||
return 0
|
ServerAliveCountMax SmartcardDevice \
|
||||||
;;
|
StrictHostKeyChecking TCPKeepAlive Tunnel \
|
||||||
-b)
|
TunnelDevice UsePrivilegedPort User \
|
||||||
COMPREPLY=( $( compgen -W "$(/sbin/ifconfig | \
|
UserKnownHostsFile VerifyHostKeyDNS \
|
||||||
awk '/adr:/ {print $2}' | \
|
VisualHostKey XAuthLocation' -- $cur ) )
|
||||||
awk -F: '{print $2}' )" -- $cur ) )
|
return 0
|
||||||
return 0
|
;;
|
||||||
;;
|
-w)
|
||||||
|
_available_interfaces
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
-b)
|
||||||
|
COMPREPLY=( $( compgen -W "$(/sbin/ifconfig | \
|
||||||
|
awk '/adr:/ {print $2}' | \
|
||||||
|
awk -F: '{print $2}' )" -- $cur ) )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
@ -170,14 +179,14 @@ _ssh_copy_id() {
|
|||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
-*i)
|
-*i)
|
||||||
_filedir
|
_filedir
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
_known_hosts -a
|
_known_hosts -a
|
||||||
|
|
||||||
[ $COMP_CWORD -eq 1 ] || \
|
[ $COMP_CWORD -eq 1 ] || \
|
||||||
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -- $cur ) )
|
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -- $cur ) )
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user