fork/fish-shell

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

Johannes Altmanninger__fish_complete_list: strip "--foo=" prefix from replacing completions320ebb685

master
2.4 KiB45 linesraw
1# Load completions shared by various ssh tools like ssh, scp and sftp.
2__fish_complete_ssh ssh
3
4#
5# ssh specific completions
6#
7
8complete -c ssh -d Remote -xa "(__fish_complete_user_at_hosts)"
9complete -c ssh -d Remote -k -fa '(__ssh_history_completions)'
10
11complete -c ssh -n 'test (__fish_number_of_cmd_args_wo_opts) -ge 2' -d "Command to run" -xa '(__fish_complete_subcommand --fcs-skip=2)'
12
13complete -c ssh -s a -d "Disables forwarding of the authentication agent"
14complete -c ssh -s B -d "Bind to the address of that interface" -xa '(__fish_print_interfaces)'
15complete -c ssh -s b -d "Local address to bind to" -xa '(__fish_print_addresses)'
16complete -c ssh -s D -d "Specify dynamic port forwarding" -x
17complete -c ssh -s E -d "Append debug logs to log_file" -rF
18complete -c ssh -s e -d "Escape character" -xa "\^ none"
19complete -c ssh -s f -d "Go to background"
20complete -c ssh -s G -d "Print configuration after evaluating Host"
21complete -c ssh -s g -d "Allow remote host to connect to local forwarded ports"
22complete -c ssh -s I -d "Specify the PKCS#11 library" -r
23complete -c ssh -s K -d "Enables GSSAPI-based authentication"
24complete -c ssh -s k -d "Disables forwarding of GSSAPI credentials"
25complete -c ssh -s L -d "Specify local port forwarding" -x
26complete -c ssh -s l -x -a "(__fish_complete_users)" -d User
27complete -c ssh -s M -d "Places the ssh client into master mode"
28complete -c ssh -s m -d "MAC algorithm" -xa "(__fish_stripprefix='^-\w*m' __fish_complete_list , __fish_ssh_macs)"
29complete -c ssh -s N -d "Do not execute remote command"
30complete -c ssh -s n -d "Prevent reading from stdin"
31complete -c ssh -s O -d "Control an active connection multiplexing master process" -x
32complete -c ssh -s p -d Port -x
33complete -c ssh -s Q -d "List supported algorithms" -xa "(ssh -Q help)"
34complete -c ssh -s R -d "Specify remote/reverse port forwarding" -x
35complete -c ssh -s S -d "Location of a control socket for connection sharing" -r
36complete -c ssh -s s -d Subsystem
37complete -c ssh -s T -d "Disable pseudo-tty allocation"
38complete -c ssh -s t -d "Force pseudo-tty allocation"
39complete -c ssh -s V -d "Display version number"
40complete -c ssh -s W -d "Forward stdin/stdout to host:port over secure channel" -x
41complete -c ssh -s w -d "Requests tunnel device forwarding" -x
42complete -c ssh -s X -d "Enable X11 forwarding"
43complete -c ssh -s x -d "Disable X11 forwarding"
44complete -c ssh -s Y -d "Enables trusted X11 forwarding"
45complete -c ssh -s y -d "Send log information using syslog"