Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Being similar to the long-standing
sb-price
,sb-ticker
allows for checking prices of regular stocks as well.$BUTTON_BLOCK=2
)<symbol>: <percent_change>
Files used:
pricefile
, located at$XDG_CACHE_HOME/stock-prices
, is where the downloaded quotes are saved for use during the non-refresh periodstickerfile
, located at$XDG_CONFIG_HOME/tickers
, is used to customize the quotes that will be fetched. The format of the contents should be<symbol1>,<symbol2>,...
tickerfile
is not present, quotes will be gathered for the S&P 500, Dow Jones Industrial Average, and Nasdaq by defaultStatusbar usages:
$BLOCK_BUTTON=1
will view the unmodified response from the last price refresh$BLOCK_BUTTON=2
will update thepricefile
, even if the hour has not ellapsed$BLOCK_BUTTON=3
will show all the prices and help for the program