fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
0df6fa791
master
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 -s4 -d"Use IPv4 addresses only" 7complete -c telnet -s6 -d"Use IPv6 addresses only" 8complete -c telnet -s8 -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) 20case FreeBSD NetBSD Linux 21complete -c telnet -s d -d"Sets debug mode" 22end 23 24switch ( uname -s) 25case FreeBSD NetBSD 26complete -c telnet -s F -s f -d"Forward local credentials if using Kerberos V5 authentication" 27complete -c telnet -s S -x -d"Sets IP TOS" 28complete -c telnet -s x -d"Turn on encryption" 29complete -c telnet -s k -x -d"Use Kerberos realm for authentication" 30complete -c telnet -s N -d"Prevent IP address to name lookup" 31complete -c telnet -s X -x -d"Disables specified type of authentication" 32end 33 34switch ( uname -s) 35case FreeBSD 36complete -c telnet -s y -d"Turn off encryption" 37complete -c telnet -s B -x -d"Set baudrate" 38complete -c telnet -s s -x -d"Set source IP address" 39complete -c telnet -s u -d"Force AF_UNIX addresses only" 40case NetBSD 41complete -c telnet -s P -x -d"Set IPsec policy specification" 42case OpenBSD 43complete -c telnet -s7 -d"Do not try to negotiate TELNET BINARY option" 44complete -c telnet -s V -x -d"Set routing table" 45complete -c telnet -s D -d"Disable rewriting of the DISPLAY var" 46complete -c telnet -s b -x -a"(__fish_print_addresses)" -d"Local address to bind to" 47case Linux 48complete -c telnet -s'?' -l help -d"Print help and exit" 49complete -c telnet -l usage -d"Print short usage and exit" 50complete -c telnet -s V -l version -d"Print program version" 51end