Skip to content

feat: look up tools on PATH#105

Open
ch1bo wants to merge 1 commit intotx3-lang:mainfrom
ch1bo:ch1bo/use-path
Open

feat: look up tools on PATH#105
ch1bo wants to merge 1 commit intotx3-lang:mainfrom
ch1bo:ch1bo/use-path

Conversation

@ch1bo
Copy link

@ch1bo ch1bo commented Mar 10, 2026

Add a $PATH lookup as a third option in tool_path(), so the resolution becomes:

  1. TX3_{NAME}_PATH env var (unchanged)
  2. Search $PATH for the tool (new — higher priority than hardcoded dir)
  3. ~/.tx3/default/bin/{name} (unchanged, now last resort)

This way, if a user has tx3c on their PATH (e.g. via nix shell), it takes precedence over whatever is in ~/.tx3/default/bin/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant