Hacker News new | past | comments | ask | show | jobs | submit login

Emojis? For the current weather, a single emoji could convey quite a lot; e.g. a snowflake for sub-60 weather (I have a low tolerance for cold), a sun for 60-80, fire emoji for 80+...

Now, I don't know if anyone truly needs the weather in their terminal prompt, but it is doable.




Microcharts or sparklines are another option. I've seen a few implementations along these lines for shell prompts / shell use.

This might be useful for temperature, humidity, wind, preciptitation, and similar measures, either as quantities or timelines.

https://en.wikipedia.org/wiki/Sparkline

https://github.com/deeplook/sparklines

Similar:

https://www.linux-magazine.com/Issues/2016/183/Calc-Conditio...


perhaps the RPROMPT would be better. i usually use it to show time %T.


curl 'wttr.in/?format=%c'

see the readme here for all options:

https://github.com/chubin/wttr.in




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: