Add comments about local file completion of _scp.
This commit is contained in:
parent
9b596cbb6b
commit
2595b32439
@ -104,6 +104,8 @@ _scp()
|
|||||||
|
|
||||||
[[ "$cur" == */* ]] || _known_hosts -c -a "$optconfigfile"
|
[[ "$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'
|
local IFS=$'\t\n'
|
||||||
COMPREPLY=( "${COMPREPLY[@]}" $( command ls -aF1d $cur* \
|
COMPREPLY=( "${COMPREPLY[@]}" $( command ls -aF1d $cur* \
|
||||||
2>/dev/null | sed \
|
2>/dev/null | sed \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user