Skip to content

Commit a0a9961

Browse files
committed
updated .envrc
1 parent b60b975 commit a0a9961

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.envrc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export COMPOSE_PROJECT_NAME="SQL-scripts"
9898
#export TF_VAR_cloudflare_api_key="$CLOUDFLARE_API_KEY" # must be a key, not a token using the link above
9999

100100
# ============================================================================ #
101-
# P y t h o n , A W S , G C P , T e r r a f o r m
101+
# Load External Envrc Files If Present
102102
# ============================================================================ #
103103

104104
# XXX: safer to bring all these external .envrc inline if you're worried about changes
@@ -124,8 +124,15 @@ load_if_exists(){
124124
fi
125125
}
126126

127+
# don't do this it may lead to an infinite loop if 'make link' symlinking ~/.envrc to this repo's .envrc
128+
# (which I do to keep Python virtual automatically loaded at all times because recent pip on Python refuses
129+
# to install to system Python)
127130
#load_if_exists ~/.envrc
128131

132+
# ============================================================================ #
133+
# P y t h o n
134+
# ============================================================================ #
135+
129136
#.envrc-aws \
130137
#.envrc-gcp \
131138
#.envrc-terraform \
@@ -136,14 +143,26 @@ for envrc in \
136143
load_if_exists "$envrc"
137144
done
138145

146+
# ============================================================================ #
147+
# A W S
148+
# ============================================================================ #
149+
139150
if [[ "$PWD" =~ /aws/ ]]; then
140151
load_if_exists .envrc-aws
141152
fi
142153

154+
# ============================================================================ #
155+
# G C P
156+
# ============================================================================ #
157+
143158
if [[ "$PWD" =~ /gcp/ ]]; then
144159
load_if_exists .envrc-gcp
145160
fi
146161

162+
# ============================================================================ #
163+
# T e r r a f o r m
164+
# ============================================================================ #
165+
147166
if [[ "$PWD" =~ /(terra(form)?|tf)(/|$) ]]; then
148167
load_if_exists .envrc-terraform
149168
fi

0 commit comments

Comments
 (0)