Last active
May 6, 2016 13:23
-
-
Save erdemolkun/5c97713876679bbcf08ff517f17fd4f8 to your computer and use it in GitHub Desktop.
Bitbar plugin for bloomberg TRY/USD exhcnage rates.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# <bitbar.title>Show emoji</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Kent Karlsson</bitbar.author> | |
# <bitbar.author.github>vogonistic</bitbar.author.github> | |
# <bitbar.desc>Example of how to use emojis</bitbar.desc> | |
# <bitbar.image>http://i.imgur.com/z4T9X6G.png</bitbar.image> | |
# <bitbar.abouturl>https://github.com/matryer/bitbar-plugins/blob/master/Tutorial/emoji.sh</bitbar.abouturl> | |
# <bitbar.title>Show emoji</bitbar.title> | |
pathBloomberg=~/Documents/bloomberght.rb | |
exchangeResults=`ruby $pathBloomberg` | |
echo "$exchangeResults | image=iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAATFJREFUOI21kjGqwkAURU8MCEJACLgDIQsI2LoAIWAluAkhaVIJVhY27iCtELBKGLDVNjsSroVO/NHRX3z+gWny3j2TeTPwH6RpqvF4LECAoihSnuf6NVgUhQaDQRt8XUEQqCxLt6goirZxsVjodDrJYoxRkiRt/Xg8vkvszvv9Xp/YbDYCNBwOu4LVaiVAy+XyY9gym80EWNkdO7Dz+dw2Ak5BVVUCFMfxU9Dv950B++21Bmg0Ggmg9+1WJOF5HveMm97jCABcLhen5Cd1XQMQRdFTMJ/PAdjtdt9+qNOTJEm3EASBAK3Xa+fwrter0jQVoDAM3890OBzahzKdTmWM6Uz+MXX5vm9v4p2yLO0jca4wDGWM6YQ9l2i73appGpqmwfd94jhmMpmQZZmz/0/cAJNLNst9PBX5AAAAAElFTkSuQmCC" | sed 's/\"//g' | sed 's/"\n":/ /' | |
echo --- | |
echo "Refresh | refresh=true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment