A Nushell script to check GitHub Status from your terminal.
gh-status
gh-status --incidents
gh-status --maintenance
Re-renders the output on a loop, bypassing the cache on each tick:
gh-status --watch
gh-status -w -n 10sec
# Or use the dedicated command, which supports the same flags:
gh-watch
gh-watch -n 10sec --incidentsgh-status --emoji # Force emoji icons
gh-status --text # Plain text, no colors or icons
gh-status --json # Output raw JSON response
gh-status --raw # Output structured records for piping
gh-status --demo # Show a demo of components and incidentsgh-status --force # Bypass cache
gh-status --debug # Print cache path, icon mode, and status
gh-status --test # Use fake test data-
Save the script as
gh_status.nu. -
Source it in your
config.nuor run directly:source gh_status.nu gh-status
To enable Nerd Font icons by default, add this to your Nushell environment file (find it by running $nu.env-path):
$env.NERD_FONTS = "1"The script will then use Nerd Font glyphs automatically, unless you override with --emoji or --text.