- Compact bash script that prints the weather forecast of your current location.
- To download the program, clone the project with HTTPS
git clone https://github.com/haakohsk/weather-shell.git
- Positionstack generate a free, private API key. Set it to the variable positionstack_api_key.
- JQ command-line JSON processor
- Install with brew:
brew install jq
- or with apt:
apt install jq
- Give the program execution permissions
chmod +x /path/to/script/./weather-shell.sh
- Paste the following into ~/.bashrc:
~/path/to/script/./weather-shell.sh "YOUR_CITY"
- Note if you are using another shell, for instance oh my zsh, the file would be ~/.zshrc