Posted on Saturday, May 26, 2007
Filed Under (Programming) by simone

In case you are a stock trading geek like me, or if you just want to monitor the stock of some company while working on your linux server, this is a very useful configuration you can put in your .bash_profile. Thank you Yahoo!

TICKER="QQQQ"
PS1="\[\033[01;32m\]\`GET 'http://download.finance.yahoo.com/d/quotes.csv?s=$TICKER&f=sl1d1'|cut -f2 -d,\` \u@\h\[\033[01;34m\] \w \$\[\033[00m\] "
export PS1

Happy monitoring!

Related posts


Tags:
Post a Comment
Name:
Email:
Website:
Comments: