-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy path.envrc
More file actions
28 lines (20 loc) · 555 Bytes
/
Copy path.envrc
File metadata and controls
28 lines (20 loc) · 555 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
#!/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