summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-04-09 19:53:59 -0400
committerBen Sima <ben@bsima.me>2024-04-10 19:56:46 -0400
commitdb6dd08ea43290208d3f574ccba3506b0f76d1ce (patch)
tree16d192d2761c551fbc7793c21f8501529cbbca08
parent28a40c430e989c5bc949e074bceda6b891902287 (diff)
Only load .envrc.local if present
Otherwise, every direnv reload will print an error. Its harmless, but still annoying.
-rw-r--r--.envrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index 717b333..67b6b37 100644
--- a/.envrc
+++ b/.envrc
@@ -47,6 +47,6 @@
git config --local branchless.test.alias.ci 'git clean -ffdx; eval $(direnv export bash); Biz/Ci.sh'
#
# load local settings
- . ./.envrc.local
+ [[ -f ./.envrc.local ]] && . ./.envrc.local || :
##
tips.sh