trelloのTodoをMacのメニューバーに追加する

Bitbarを使う
https://github.com/matryer/bitbar
https://getbitbar.com

trello.sh

#!/bin/zsh
# <bitbar.title>Trello</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Shohei Aoki</bitbar.author>
# <bitbar.author.github>shohei</bitbar.author.github>
# <bitbar.image>http://i.imgur.com/EDYR52G.png</bitbar.image>
# <bitbar.desc>Trello todo</bitbar.desc>
echo TODO
TODO1=`curl --silent "https://api.trello.com/1/lists/xxxxxxxxxxxxxxxxxxxxxxxx?fields=name&cards=open&card_fields=name&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | python -c 'import sys, json; print json.load(sys.stdin)["cards"][0]["name"].encode("utf-8")'`
echo $TODO1