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.
1 parent 8a34543 commit f391bbbCopy full SHA for f391bbb
completions/ssh
@@ -487,12 +487,15 @@ _comp_xfunc_ssh_scp_local_files()
487
shift
488
fi
489
490
+ local files
491
+ _comp_expand_glob files '"$cur"*'
492
+ ((${#files[@]})) || return 0
493
if $dirsonly; then
- COMPREPLY+=($(command ls -aF1dL "$cur"* 2>/dev/null |
494
+ COMPREPLY+=($(command ls -aF1dL "${files[@]}" 2>/dev/null |
495
command sed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" -e '/[^\/]$/d' \
496
-e "s/^/${1-}/"))
497
else
498
499
command sed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" -e 's/[*@|=]$//g' \
500
-e 's/[^\/]$/& /g' -e "s/^/${1-}/"))
501
0 commit comments