mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
12 lines
447 B
Bash
12 lines
447 B
Bash
#!/bin/zsh
|
|
|
|
################################################################################
|
|
# This function shows the current weather info of the location passed
|
|
# by argument (your current location if no location is passed).
|
|
# e.g.: weather
|
|
# e.g.: weather Madrid
|
|
################################################################################
|
|
function weather {
|
|
command -v 'curl' > /dev/null 2>&1 && \
|
|
curl "wttr.in/$1" -s | head -n 7
|
|
}
|