Last active
November 17, 2018 11:58
-
-
Save alex179ohm/3696d50aa37109373b79 to your computer and use it in GitHub Desktop.
Wttr.in light theme readable on light terminal colors.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_wttr() { | |
curl -s wttr.in/$1 | sed -e 's/38;5/1;38;5/g' -e 's/226m/220m/g' | |
if [ $? -ne 0 ] | |
then | |
printf "\033[1;38;5;196Something go wrong.\033[0m\n" | |
return 1 | |
fi | |
} | |
alias wttr='_wttr' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage:
or