2005-09-20 21:31:55 +08:00
|
|
|
#
|
2006-02-15 10:22:28 +08:00
|
|
|
# Load common ssh options
|
2005-09-20 21:31:55 +08:00
|
|
|
#
|
|
|
|
|
2006-02-15 10:22:28 +08:00
|
|
|
__fish_complete_ssh ssh
|
2005-09-20 21:31:55 +08:00
|
|
|
|
|
|
|
complete -x -c ssh -d Hostname -a "
|
|
|
|
|
|
|
|
(__fish_print_hostnames)
|
|
|
|
|
|
|
|
(
|
|
|
|
#Prepend any username specified in the completion to the hostname
|
2005-12-19 06:51:50 +08:00
|
|
|
echo (commandline -ct)|sed -ne 's/\(.*@\).*/\1/p'
|
2005-09-20 21:31:55 +08:00
|
|
|
)(__fish_print_hostnames)
|
|
|
|
|
|
|
|
(__fish_print_users)@
|
|
|
|
"
|
|
|
|
|
2006-01-08 10:56:56 +08:00
|
|
|
complete -c ssh -s a -d (_ "Disables forwarding of the authentication agent")
|
|
|
|
complete -c ssh -s A -d (_ "Enables forwarding of the authentication agent")
|
|
|
|
complete -x -c ssh -s b -d (_ "Interface to transmit from") -a "
|
2005-09-20 21:31:55 +08:00
|
|
|
(
|
|
|
|
cat /proc/net/arp ^/dev/null| grep -v '^IP'|cut -d ' ' -f 1 ^/dev/null
|
|
|
|
)
|
|
|
|
"
|
|
|
|
|
2006-01-08 10:56:56 +08:00
|
|
|
complete -x -c ssh -s e -d (_ "Escape character") -a "^ none"
|
|
|
|
complete -c ssh -s f -d (_ "Go to background")
|
|
|
|
complete -c ssh -s g -d (_ "Allow remote host to connect to local forwarded ports")
|
|
|
|
complete -c ssh -s I -d (_ "Smartcard device")
|
|
|
|
complete -c ssh -s k -d (_ "Disable forwarding of Kerberos tickets")
|
|
|
|
complete -c ssh -s l -x -a "(__fish_complete_users)" -d (_ "User")
|
|
|
|
complete -c ssh -s m -d (_ "MAC algorithm")
|
|
|
|
complete -c ssh -s n -d (_ "Prevent reading from stdin")
|
|
|
|
complete -c ssh -s N -d (_ "Do not execute remote command")
|
|
|
|
complete -c ssh -s p -x -d (_ "Port")
|
|
|
|
complete -c ssh -s q -d (_ "Quiet mode")
|
|
|
|
complete -c ssh -s s -d (_ "Subsystem")
|
|
|
|
complete -c ssh -s t -d (_ "Force pseudo-tty allocation")
|
|
|
|
complete -c ssh -s T -d (_ "Disable pseudo-tty allocation")
|
|
|
|
complete -c ssh -s x -d (_ "Disable X11 forwarding")
|
|
|
|
complete -c ssh -s X -d (_ "Enable X11 forwarding")
|
|
|
|
complete -c ssh -s L -d (_ "Locally forwarded ports")
|
|
|
|
complete -c ssh -s R -d (_ "Remotely forwarded ports")
|
|
|
|
complete -c ssh -s D -d (_ "Dynamic port forwarding")
|