This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.local/bin/curlstuff

14 lines
328 B
Bash
Executable File

#!/bin/sh
case $1 in
--weather) curl wttr.in/$2;;
--moon) curl wttr.in/Moon;;
--qr) curl qrenco.de/$2;;
--cheat) curl https://cht.sh/$2;;
--crypto) curl rate.sx/$2;;
--url) curl -F 'shorten='$2'' https://0x0.st;;
--news) curl getnews.tech/$2;;
--dict) curl dict://dict.org/d:$2;;
*) ;;
esac