Skip to content

Instantly share code, notes, and snippets.

@csellis
Created October 12, 2025 11:04
Show Gist options
  • Select an option

  • Save csellis/e9e7ea3e1d228d33155f2e930d1c8474 to your computer and use it in GitHub Desktop.

Select an option

Save csellis/e9e7ea3e1d228d33155f2e930d1c8474 to your computer and use it in GitHub Desktop.
Claude killing orphaned Vitest workers
# Kill orphaned vitest workers (from Claude Code test runs)
alias "kill-orphaned-vitest"='ps -eo pid,ppid,command | grep "node (vitest" | grep -v grep | awk "\$2 == 1 {print \$1}" | xargs kill 2>/dev/null || true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment