dotfiles/fish/functions/rt.fish

8 lines
410 B
Fish

function rt -d "Check a URL's response time"
if count $argv > /dev/null
curl -s -w 'URL response time for: %{url_effective}\n\nLookup time:\t\t%{time_namelookup}\nConnect time:\t\t%{time_connect}\nPre-transfer time:\t%{time_pretransfer}\nStart-transfer time:\t%{time_starttransfer}\n\nTotal time:\t\t%{time_total}\n' -o /dev/null $argv
else
echo "You need to pass in a URL"
end
end