Skip to content

Commit

Permalink
feat: Added basic Shell Script for weather info
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
mdsanima committed Jan 6, 2024
1 parent a7cfd88 commit 8089027
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .local/bin/mdsanima-weather
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# Copyright © 2023 MDSANIMA

# You can use this in the terminal by typing `mdsanima-weather` which will show
# the weather in your nearest location or by typing `mdsanima-weather city` for
# a specific city.

# Basic terminal setting.
set -o errexit
set -o pipefail
set -o nounset

# This is actual weather.
curl "https://wttr.in/${1:-}"

0 comments on commit 8089027

Please sign in to comment.