Skip to content

haakohsk/weather-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌡 Weather-shell

  • Compact bash script that prints the weather forecast of your current location.

weather-gif

👨🏼‍💻 Download

  • To download the program, clone the project with HTTPS

git clone https://github.com/haakohsk/weather-shell.git

📌 Dependencies

  • 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

🏃🏽‍♂️ Run script

  • Give the program execution permissions chmod +x /path/to/script/./weather-shell.sh

🤖 Make script run for every new shell

  • 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages