Rewrite opam-path tutorial as 'The OCaml Development Environment'#3580
Open
cuihtlauac wants to merge 2 commits into
Open
Rewrite opam-path tutorial as 'The OCaml Development Environment'#3580cuihtlauac wants to merge 2 commits into
cuihtlauac wants to merge 2 commits into
Conversation
…t Environment" Expand the minimal opam-path tutorial (99 lines) into a comprehensive guide (~210 lines) covering: - What environment variables an opam switch sets and why - eval $(opam env) with platform-specific syntax (Linux, macOS, Windows) - opam exec -- as the stateless alternative - direnv for automatic per-directory setup - When to use which method (decision table) - Configuring LLM coding agents (Claude Code, Cursor, Copilot) - Reference table of other OCaml environment variables - Platform-specific notes and troubleshooting Also add "opam-path" to opam-switch-introduction's recommended next tutorials. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
- MD014: Remove `$ ` prefix from shell code blocks without output - MD036: Convert bold pseudo-headings to ### headings in Troubleshooting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
0_09_opam_path.md(99 lines, 3 short sections) into a comprehensive guide (~210 lines) covering the full OCaml development environmenteval $(opam env)on Linux, macOS (bash/zsh/fish), and Windows (PowerShell/cmd)eval $(opam env)vsopam exec --vs direnv, with a decision tableopam exec --since each command runs in a fresh shellOCAMLRUNPARAM,OCAML_COLOR,OCAMLPATH,DUNE_CACHE, etc.)"opam-path"toopam-switch-introduction's recommended next tutorialsKeeps
id: "opam-path"to preserve existing URLs and links.Test plan
make buildsucceeds (tutorial frontmatter parsing, cross-reference validation)/docs/opam-path/docs/opam-switch-introductionworks🤖 Generated with Claude Code