Skip to content

Instantly share code, notes, and snippets.

@rw3iss
rw3iss / statusline-README.md
Created April 21, 2026 19:24
Claude Code status line: model, git, tokens, org, rate limits, CWD — adaptive width tiers

Claude Code Status Line

A single-file bash status line for Claude Code, displaying model, git state, token usage, organization, rate limits, and working directory on one line — with adaptive width tiers so it never wraps.

Based on daniel3303/ClaudeCodeStatusLine with these additions:

  • Organization name (auto-resolved from $CLAUDE_CONFIG_DIR/.claude.json)
  • Per-directory git cache (10s) — avoids slow git status on large repos
  • Per-token rate-limit API cache (60s) — switching accounts auto-invalidates
  • Ahead/behind upstream counts
  • Feature flags to toggle each section independently
@rw3iss
rw3iss / README.md
Last active April 17, 2026 10:25
envm: shell environment variable manager for ~/profile/.env

envm — environment variable manager

A shell utility to list, read, set, and delete variables in your ~/profile/.env — the single source of truth for all shell environment variables.

Changes take effect immediately in the current shell — no need to restart or re-source manually.

Install

Add envm as a shell function so it runs in your current shell context (required for live export/unset to work):

@rw3iss
rw3iss / README.md
Created April 17, 2026 09:57
git-status-all: color-coded recursive git status across all repos in a directory tree

git-status-all

A bash script that recursively finds every git repository under a directory and prints a color-coded, tree-structured status summary — showing uncommitted changes, unpushed commits, and remote commits waiting to be pulled, all on one line per repo.

Install

# 1. Download the script
curl -o ~/bin/git-status-all https://gist.githubusercontent.com/rw3iss/raw/git-status-all
chmod +x ~/bin/git-status-all
@rw3iss
rw3iss / .tmux.conf
Created March 21, 2026 18:12
tmux Setup
# ~/.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on' # Auto restore on tmux server start
set -g mouse on
set-option -g history-limit 5000
@rw3iss
rw3iss / set_keyboard_repeat_rate.reg
Last active March 11, 2024 10:59
Set keyboard repeat rate
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response]
"Last BounceKey Setting"=dword:00000000
"Last Valid Delay"=dword:00000000
"Last Valid Repeat"=dword:00000000
"Last Valid Wait"=dword:000003e8
"AutoRepeatDelay"="120"
"AutoRepeatRate"="2"
"BounceTime"="5"
"DelayBeforeAcceptance"="2"
"Flags"="27"
@rw3iss
rw3iss / vite.config.ts
Created November 16, 2023 17:27
vite config
import react from '@vitejs/plugin-react-swc';
import path from 'path';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { libInjectCss } from 'vite-plugin-lib-inject-css';
//import reactJsx from 'vite-react-jsx';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
@rw3iss
rw3iss / nginx-sites.conf
Last active July 27, 2023 20:45
nginx multi-site config
server {
listen 80;
listen [::]:80;
server_name tier33.ryanweiss.net;
root /web/tier33/build;
index index.html;
location / {
try_files $uri $uri/ /index.html?&args;
@rw3iss
rw3iss / rw3iss.zsh-theme
Created November 22, 2022 06:03
rw3iss.zsh-theme
PROMPT='%{$fg_bold[green]%}%{$fg[cyan]%}%d %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
RPROMPT='$(git_prompt_status)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✈"
on run {input, parameters}
-- # Screen Shot to Clipboard and File
-- # Clear the clipboard so the 'repeat until isReady ...' loop works properly.
set the clipboard to ""
-- # Copy picture of selected area to the clipboard, press: ⌃⇧⌘4
-- # Note that on my system I need to keystroke '$' instead of '4'.
@rw3iss
rw3iss / .bash_aliases
Last active October 24, 2022 06:08
.profile
source ~/.profile/.bash_aliases