Enables displaying GitHub Status in tmux status-right
In order to read GitHub Status, this plugin depends on curl and jq.
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf:
set -g @plugin 'windymelt/tmux-github'Hit <prefix> + I to fetch the plugin and source it.
If format strings are added to status-right, they should now be visible.
Clone the repo:
git clone https://github.com/windymelt/tmux-github ~/clone/pathAdd this line to the bottom of .tmux.conf:
run-shell ~/clone/path/gh-status.tmuxFrom the terminal, reload TMUX environment:
tmux source-file ~/.tmux.confIf format strings are added to status-right, they should now be visible.
Add any of the supported format strings (see below) to the status-right tmux option in .tmux.conf. Example:
set -g status-right '#{gh_status_description} | %a %h-%d %H:%M '#{gh_status_description}- will show GitHub Status description message. e.g.All Systems Operational,Partial System Outage, etc.
This plugin is inspired from https://github.com/tmux-plugins/tmux-battery .