Skip to content

Mousaka/fish-weather-icon-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☀️ 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.

About

Weather icon in prompt for fish shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages