diff --git a/contrib/ssh b/contrib/ssh index 09e3ae76..85325aa2 100644 --- a/contrib/ssh +++ b/contrib/ssh @@ -104,6 +104,8 @@ _scp() [[ "$cur" == */* ]] || _known_hosts -c -a "$optconfigfile" + # This approach is used instead of _filedir to get a space appended + # after local file/dir completions, and $nospace retained for others. local IFS=$'\t\n' COMPREPLY=( "${COMPREPLY[@]}" $( command ls -aF1d $cur* \ 2>/dev/null | sed \