A minimal prompt with a weather icon. It fetches the current weather of Stockholm (easy to change the hard coded longditude and latitude) and shows it in the fish prompt on each new command.
- fish
- curl
- jq
brew install fish curl jq
See: https://fishshell.com/ https://curl.haxx.se/ https://stedolan.github.io/jq/
Copy fish_prompt.fish
and fish_weather_icon.fish
into the fish-functions directory:
# Warning this will override your current fish_prompt!
cp {fish_prompt.fish, fish_weather_icon.fish} ~/.config/fish/functions/
- You can get more detailed information in:
Also put fish_title.fish
there if you want to see the weather icon in the terminal's title field.