From 097a7322b991e1f444c101730feaa372730b832c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 14 Dec 2017 14:11:09 +1100 Subject: [PATCH] Updated Customizing Info (markdown) --- Customizing-Info.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Customizing-Info.md b/Customizing-Info.md index d18a1a2..82f521c 100644 --- a/Customizing-Info.md +++ b/Customizing-Info.md @@ -196,6 +196,12 @@ print_info() { ## More complex examples +### Display the current weather + +```sh +prin "Weather" "$(curl wttr.in/?0?q?T | awk '/°(C|F)/ {printf $3 $4 " ("a")"} /,/ {a=$0}')" +``` + ### Print color blocks on the top and bottom ```sh