Skip to content

Instantly share code, notes, and snippets.

@kanufy
kanufy / .zshrc
Last active February 26, 2016 16:14
お天気をzshのプロンプトに表示させる部分の.zshrc
### Weather ###
#kyoto = 260010
#tokyo = 130010
#shiga = 250010
WEATHER=$(curl -s http://weather.livedoor.com/forecast/webservice/json/v1\?city\=260010 | jq -r '.forecasts[] | select(.dateLabe\
l == "今日").telop' );
case $WEATHER in
曇時々晴) WE="☁ /☀";;
曇時々雨) WE="☁ /☂";;
曇時々雪) WE="☁ /☃";;