Skip to content

Commit 60fd1ce

Browse files
committed
envrc: Allow for custom settings in .envrc.local
Change-Id: Id7dd4554a88a9f6a6aeb048cf65bc8c312c3f8a1
1 parent 5e66cfb commit 60fd1ce

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.envrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ fi
1919
# Last because PATH_add *prepends* and we want the .venv bins *first*
2020
# for things like pylsp to be happy when an editor applies envrc
2121
layout cmk_uv
22+
23+
# .envrc.local is gitignored. It provides some flexibility to include things like this:
24+
#
25+
# export MYPYPATH="$(find packages non-free/packages -maxdepth 2 -name pyproject.toml -printf '%h:' 2>/dev/null)"
26+
#
27+
# ... for people whose setups depend on such things.
28+
watch_file .envrc.local
29+
source_env_if_exists .envrc.local

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.coverage.*
88
.directory
99
.DS_Store
10+
.envrc.local
1011
.github/prompts
1112
.github/agents/*.local.md
1213
.idea/

0 commit comments

Comments
 (0)