We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ssh
1 parent 185b063 commit d55f5e6Copy full SHA for d55f5e6
completions/ssh
@@ -384,6 +384,10 @@ _comp_cmd_sftp()
384
local configfile
385
_comp_cmd_ssh__configfile
386
387
+ # Prefer `ssh` from same dir for resolving options, etc
388
+ local pathcmd
389
+ pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH
390
+
391
_comp_xfunc_ssh_suboption_check && return
392
393
local ipvx=
@@ -524,6 +528,10 @@ _comp_cmd_scp()
524
528
525
529
526
530
531
532
533
534
527
535
_comp_xfunc_ssh_suboption_check && {
536
((${#COMPREPLY[@]})) && COMPREPLY=("${COMPREPLY[@]/%/ }")
537
return
0 commit comments