ansiweather

Weather in terminal, with ANSI colors and Unicode symbols
Log | Files | Refs | README | LICENSE

commit 083c10361af2dad7fd04dae7ddb231201feeb0fa
parent 98ffc43417505353be8a0d56c88db623915a7e46
Author: Marco Fontani <MFONTANI@cpan.org>
Date:   Tue, 22 Oct 2013 10:16:12 +0100

When given, take location from the first command-line arg

So that:

    ./ansiweather

Will use the ~/.ansiweatherrc location, but:

    ./ansiweather Rome

will instead tell you the weather in Rome.

Diffstat:
Mansiweather | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -36,6 +36,9 @@ function get_config { # Location : example "Moscow,RU" location=$(get_config "location" || echo "Moscow,RU") +if [ ! -z "$1" ]; then + location=$1; +fi # System of Units : "metric" or "imperial" units=$(get_config "units" || echo "metric")