This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Shared helpers for Claude Code worktree tooling. | |
| # Source this: `source "$(dirname "$0")/_slug.sh"` (or via an absolute path). | |
| # | |
| # Exposes: | |
| # slugify <abs-path> -> Claude Code project dir slug | |
| # to_settings_path <abs-path> -> path written into .claude/settings.local.json | |
| # | |
| # Slug rule (reverse-engineered from Claude Code behavior on Windows 11, | |
| # v2.1.112; the rule is not documented by Anthropic, see |