-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy path.envrc
More file actions
30 lines (21 loc) · 590 Bytes
/
.envrc
File metadata and controls
30 lines (21 loc) · 590 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# shellcheck disable=SC1091
if [[ -f "${PWD}/.env" ]]; then
dotenv
fi
PATH_add "${HOME}/.local/share/sentry-devenv/bin"
if ! command -v devenv >/dev/null; then
echo "install devenv: https://github.com/getsentry/devenv#install"
return 1
fi
PATH_add "${PWD}/.devenv/bin"
PATH_add /opt/homebrew/opt/rustup/bin
if [ ! -d .venv ]; then
# make sure PYTHONHOME isn't set until we've created the .venv
unset PYTHONHOME
devenv sync
fi
export VIRTUAL_ENV="${PWD}/.venv"
PATH_add "${PWD}/.venv/bin"
. scripts/rust-envvars
export DOGSTATSD_HOST='localhost'