commits
Claude and Codex CLIs are node scripts (#!/usr/bin/env node) that
need node on PATH. The previous code had two issues:
1. fnm path scanning used wrong structure (~/.local/share/fnm/*/bin)
instead of actual fnm layout (node-versions/v*/installation/bin)
2. Even when claude was found (e.g. in ~/.bun/bin), node wasn't on
PATH because fnm's bin directory wasn't included in static paths
Fix:
- Add fnm aliases/default/bin to static PATH (provides node)
- Add nvm alias/default/bin for nvm users
- Fix fnm binary scanning to use correct directory structure
- Check fnm default alias first for faster resolution
馃 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Claude and Codex CLIs are node scripts (#!/usr/bin/env node) that
need node on PATH. The previous code had two issues:
1. fnm path scanning used wrong structure (~/.local/share/fnm/*/bin)
instead of actual fnm layout (node-versions/v*/installation/bin)
2. Even when claude was found (e.g. in ~/.bun/bin), node wasn't on
PATH because fnm's bin directory wasn't included in static paths
Fix:
- Add fnm aliases/default/bin to static PATH (provides node)
- Add nvm alias/default/bin for nvm users
- Fix fnm binary scanning to use correct directory structure
- Check fnm default alias first for faster resolution
馃 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>