mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
feat: Adds weather desktop file, I may need to fix how it gets copied in the dev-env script.
This commit is contained in:
14
env/.local/scripts/get-weather
vendored
Executable file
14
env/.local/scripts/get-weather
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Get the weather for the given location.
|
||||
|
||||
location=${1:-Cincinnati}
|
||||
shouldContinue="1"
|
||||
|
||||
while [[ $shouldContinue == "1" ]]; do
|
||||
echo -e "\e[H\e[2J" # clears the screen.
|
||||
curl "wttr.in/$1"
|
||||
shouldContinue=$(gum confirm "Quit / Refresh" --affirmative Quit --negative Refresh && echo "0" || echo "1")
|
||||
done
|
||||
|
||||
echo -e "\e[H\e[2J" # clears the screen.
|
||||
Reference in New Issue
Block a user