ambevar-dotfiles/.local/bin/weather

16 lines
179 B
Plaintext
Raw Normal View History

2016-04-29 12:09:19 +02:00
#!/bin/sh
if [ "$1" = "-h" ]; then
cat <<EOF>&2
2016-04-29 12:09:19 +02:00
Usage: ${0##*/} [OPTIONS]
Display weather forecast.
Use '${0##*/} :help' to list all options.
2016-04-29 12:09:19 +02:00
EOF
exit
fi
curl wttr.in/"$1"