done
if has_completion wget; then
- complete -F _wget wget-m wget-wrapper ww
+ _wget_completion_loader() {
+ _completion_loader wget
+ complete -F _wget wget-m wget-wrapper ww
+ return 124
+ }
+ complete -F _wget_completion_loader wget-m wget-wrapper ww
fi
for cmd in distribute ftp lftp r rsync \
s scp ssh smbclient tcpdump tshark wireshark; do
! has_completion $cmd && complete -o default -A hostname $cmd;
done
+
+ if has_completion rsync; then
+ _rsync_completion_loader() {
+ _completion_loader rsync
+ complete -F _rsync r
+ return 124
+ }
+ complete -F _rsync_completion_loader r
+ fi
+
+ if has_completion ssh; then
+ _ssh_completion_loader() {
+ _completion_loader ssh
+ complete -F _ssh s
+ return 124
+ }
+ complete -F _ssh_completion_loader s
+ fi
+
unset has_completion
complete -A job bg fg j jobs wait