diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-02-06 23:22:29 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-02-06 23:22:29 +0200 |
commit | 2595b32439d58f6ba16b40ada4ab895a84207f16 (patch) | |
tree | e1981c0cad73be9d13960deb413e51acfb0fba7d | |
parent | 9b596cbb6b810104c5716c67d3c6477497e22eab (diff) | |
download | bash-completion-2595b32439d58f6ba16b40ada4ab895a84207f16.tar.gz |
Add comments about local file completion of _scp.
-rw-r--r-- | contrib/ssh | 2 |
1 files changed, 2 insertions, 0 deletions
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 \ |