Shows market in the status line, data provided by CoinMarketCap
- curl
- jq
Add the plugin in .tmux.conf
:
set -g @plugin '5cs/tmux-market'
Press prefix + I
to fetch the plugin and source it. Done.
Clone the repo somewhere. Add run-shell
in the end of .tmux.conf
:
run-shell PATH_TO_REPO/market.tmux
NOTE: this line should be placed after set-option -g status-right ...
.
Press prefix + :
and type source-file ~/.tmux.conf
. Done.
Add #{market}
somewhere in the right status line:
set-option -g status-right "#{market}"
then you will see the current market in the status line: ษ 33930
The plugin could be customized with:
set-option -g @tmux-market-interval 15
- Set up the update interval in minutes, by default it is 15 minutes.set-option -g @tmux-market-api-key xxx
- Set up the crypto market api key, register from CoinMarketCap.set-option -g @tmux-market-units" "USD"
- Set up market units (USD - for US dollar, CNY - for RMB yuan), by default used USD units.
tmux-market plugin is released under the MIT License.