/fish-weather-icon-prompt

Weather icon in prompt for fish shell

Primary LanguageShell

☀️ Weather icon in prompt for fish shell

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.

Looks like this

Dark terminal Solarized light iterm

Requirements

  • fish
  • curl
  • jq

Install requirements

Homebrew (osx)

brew install fish curl jq

Other OS

See: https://fishshell.com/ https://curl.haxx.se/ https://stedolan.github.io/jq/

Copy files to fish functions

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/

Also put fish_title.fish there if you want to see the weather icon in the terminal's title field.