I wrote a quick little shell script this morning using the YAHOO Finance API to show the stock price of my company in the terminal. This works for any company that’s publicly traded. Just change “JIVE” to your desired company’s stock ticker code.
In ~/.bash_profile, I added a function to make the CURL request to the API:
(If you’re on Linux, add this to your ~/.bashrc instead)
Below this, I added a bash alias to call the function. An alias is essentially a shortcut for a command.
Now, reload ~/.bash_profile.
And call your alias command.