fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

ccoVeilleFix typos in completions scripts0df6fa791

master
2.3 KiB51 linesraw
1# First written by:  Sean C. Higgins
2
3complete -x -c telnet -d Hostname -a "(__fish_print_hostnames)"
4
5# Common across all telnet implementations
6complete -c telnet -s 4 -d "Use IPv4 addresses only"
7complete -c telnet -s 6 -d "Use IPv6 addresses only"
8complete -c telnet -s 8 -d "Specifies an 8-bit data path"
9complete -c telnet -s E -d "Stops any character from being recognized as an escape character"
10complete -c telnet -s e -x -d "Set escape character"
11complete -c telnet -s K -d "Specifies no automatic login to remote system"
12complete -c telnet -s a -d "Attempt automatic login"
13complete -c telnet -s c -d "Disables reading user's .telnetrc"
14complete -c telnet -s l -x -a "(__fish_complete_users)" -d "User login"
15complete -c telnet -s L -d "Specifies an 8-bit data path"
16complete -c telnet -s n -x -d "Log to tracefile"
17complete -c telnet -s r -d "User interface similar to rlogin"
18
19switch (uname -s)
20    case FreeBSD NetBSD Linux
21        complete -c telnet -s d -d "Sets debug mode"
22end
23
24switch (uname -s)
25    case FreeBSD NetBSD
26        complete -c telnet -s F -s f -d "Forward local credentials if using Kerberos V5 authentication"
27        complete -c telnet -s S -x -d "Sets IP TOS"
28        complete -c telnet -s x -d "Turn on encryption"
29        complete -c telnet -s k -x -d "Use Kerberos realm for authentication"
30        complete -c telnet -s N -d "Prevent IP address to name lookup"
31        complete -c telnet -s X -x -d "Disables specified type of authentication"
32end
33
34switch (uname -s)
35    case FreeBSD
36        complete -c telnet -s y -d "Turn off encryption"
37        complete -c telnet -s B -x -d "Set baudrate"
38        complete -c telnet -s s -x -d "Set source IP address"
39        complete -c telnet -s u -d "Force AF_UNIX addresses only"
40    case NetBSD
41        complete -c telnet -s P -x -d "Set IPsec policy specification"
42    case OpenBSD
43        complete -c telnet -s 7 -d "Do not try to negotiate TELNET BINARY option"
44        complete -c telnet -s V -x -d "Set routing table"
45        complete -c telnet -s D -d "Disable rewriting of the DISPLAY var"
46        complete -c telnet -s b -x -a "(__fish_print_addresses)" -d "Local address to bind to"
47    case Linux
48        complete -c telnet -s '?' -l help -d "Print help and exit"
49        complete -c telnet -l usage -d "Print short usage and exit"
50        complete -c telnet -s V -l version -d "Print program version"
51end