Skip to content

Instantly share code, notes, and snippets.

@simoninglis
simoninglis / bashrc-d-gist.md
Created February 5, 2026 07:00
Modular .bashrc with .bashrc.d/ - shell configuration pattern for use with GNU Stow

Modular .bashrc with .bashrc.d/

A pattern for organising shell configuration into focused, manageable files. Works especially well with GNU Stow for dotfiles.

The sourcing loop

Add this to the end of your ~/.bashrc:

# Source additional shell configurations
@simoninglis
simoninglis / README.md
Created February 5, 2026 01:54
GNU Stow for Dotfiles - Quick Start Examples

GNU Stow for Dotfiles - Quick Start

Examples from GNU Stow for Dotfiles.

Structure

~/dotfiles/
├── bash/
│ ├── .bashrc
@simoninglis
simoninglis / README.md
Created February 3, 2026 00:19
CI status in tmux status bar (GitHub Actions + Gitea Actions)

CI Status in tmux Status Bar

Put your CI build status in your tmux status bar. Know immediately when something breaks.

C:✓ B:✓ D:✓ V:✓ │ 14:32 01-Feb

Why?

@simoninglis
simoninglis / teax-ci-status
Created January 30, 2026 10:09
teax CI status for tmux - Real-time Gitea workflow visibility
#!/usr/bin/env bash
# Description: Output Gitea CI workflow status for tmux status bar
# Author: https://github.com/simoninglis/teax
# License: MIT
#
# Dependencies:
# - teax: Gitea CLI companion (pip install git+https://github.com/simoninglis/teax.git)
# - tea: Official Gitea CLI (must be configured with `tea login add`)
# - jq: JSON processor
#
@simoninglis
simoninglis / gist-README.md
Last active February 6, 2026 06:30
claude-usage: Display Claude Code API usage (5h/7d quotas) in tmux status bar with color-coded thresholds

claude-usage: Claude Code Usage in tmux Status Bar

Display your Claude Code API usage (5-hour and 7-day quotas) directly in your tmux status bar with color-coded thresholds and time-until-reset.

tmux status bar showing claude-usage

What It Shows

5h:14(3h) 7d:75(19h) │ 13:20 29-Jan