Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
judofyr
on July 10, 2025
|
parent
|
context
|
favorite
| on:
Magic .env files built for sharing: Human-first, A...
With direnv you can also run commands directly in the .envrc:
export OPENAPI_API_KEY=$(op read "op://api-prod/openai/api-key")
Every time you cd into the directory it will execute the command. Isn’t this even better than copying the secret into a local file?
conception
on July 10, 2025
[–]
1password actually has environments now so you can just load it directly.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: