Skip to content

chore: make direnv opt-in via samples/ and preserve local dotfiles#274

Open
edvardm wants to merge 1 commit intoOpenFilamentCollective:mainfrom
edvardm:dx/direnv-opt-in-samples
Open

chore: make direnv opt-in via samples/ and preserve local dotfiles#274
edvardm wants to merge 1 commit intoOpenFilamentCollective:mainfrom
edvardm:dx/direnv-opt-in-samples

Conversation

@edvardm
Copy link
Copy Markdown
Contributor

@edvardm edvardm commented Apr 13, 2026

Stop tracking .envrc so that developers can customize their dev flow as they see fit,
but provide current version through task setup if .envrc doesn't exist.

  • Add samples/envrc (verbatim copy of the previous .envrc) and samples/default.env.
  • New .setup-sample-files task (wired into task setup) copies samples into place only when the target is missing. Existing local files are NOT overwritten.
  • git-ignore .envrc and .envrc.local so that users can modify them at will

Would close #270.

Note

As git would rename .envrc -> samples/envrc, users need to run task setup once to restore old .envrc file

@edvardm edvardm force-pushed the dx/direnv-opt-in-samples branch from 5d845a0 to e0e3e57 Compare April 13, 2026 16:53
Stop tracking .envrc so per-developer edits no longer churn in git.
task setup now seeds .envrc and .env from samples/ only when missing,
keeping existing local files untouched. Closes OpenFilamentCollective#270.
@edvardm edvardm force-pushed the dx/direnv-opt-in-samples branch from e0e3e57 to 5b6acd4 Compare April 13, 2026 17:12
@edvardm edvardm marked this pull request as ready for review April 13, 2026 17:14
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.

make direnv opt-in via sample files + local dotenv support

1 participant