aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_complete_ssh.fish
blob: b1154a53ab54079e085cb2a572ccc03e9a8073bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

function __fish_complete_ssh -d "common completions for ssh commands" --argument command

        complete -c $command -s 1 --description "Protocol version 1 only"
        complete -c $command -s 2 --description "Protocol version 2 only"
	complete -c $command -s 4 --description "IPv4 addresses only"
	complete -c $command -s 6 --description "IPv6 addresses only"
	complete -c $command -s C --description "Compress all data"
	complete -xc $command -s c --description "Encryption algorithm" -a "blowfish 3des des"
	complete -r -c $command -s F --description "Configuration file"
	complete -r -c $command -s i --description "Identity file"
	complete -x -c $command -s o --description "Options" -a "
		AddressFamily
		BatchMode
		BindAddress
		ChallengeResponseAuthentication
		CheckHostIP
		Cipher
		Ciphers
		Compression
		CompressionLevel
		ConnectionAttempts
		ConnectTimeout
		ControlMaster
		ControlPath
		GlobalKnownHostsFile
		GSSAPIAuthentication
		GSSAPIDelegateCredentials
		Host
		HostbasedAuthentication
		HostKeyAlgorithms
		HostKeyAlias
		HostName
		IdentityFile
		IdentitiesOnly
		LogLevel
		MACs
		NoHostAuthenticationForLocalhost
		NumberOfPasswordPrompts
		PasswordAuthentication
		Port
		PreferredAuthentications
		Protocol
		ProxyCommand
		PubkeyAuthentication
		RhostsRSAAuthentication
		RSAAuthentication
		SendEnv
		ServerAliveInterval
		ServerAliveCountMax
		SmartcardDevice
		StrictHostKeyChecking
		TCPKeepAlive
		UsePrivilegedPort
		User
		UserKnownHostsFile
		VerifyHostKeyDNS
	"
	complete -c $command -s v --description "Verbose mode"
end