NFC: fix indentation, trim trailing whitespace.

This commit is contained in:
Ville Skyttä 2009-01-23 01:18:28 +02:00
parent eb1c298f8f
commit 7ee70294ba

View File

@ -103,11 +103,13 @@ _scp()
done done
[[ "$cur" == */* ]] || _known_hosts -c -a "$optconfigfile" [[ "$cur" == */* ]] || _known_hosts -c -a "$optconfigfile"
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 \
-e "s/[][(){}<>\",:;^&\!$=?\`|\\ ']/\\\\&/g" \ -e "s/[][(){}<>\",:;^&\!$=?\`|\\ ']/\\\\&/g" \
-e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) ) -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
return 0 return 0
} }
complete -F _scp $nospace scp complete -F _scp $nospace scp