We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd47088 commit 49be3c8Copy full SHA for 49be3c8
.envrc
@@ -0,0 +1,16 @@
1
+# Automatically sets up your devbox environment whenever you cd into this
2
+# directory via our direnv integration:
3
+
4
+use_devbox() {
5
+ watch_file devbox.json
6
+ if [ -f .devbox/gen/shell.nix ]; then
7
+ DEVBOX_SHELL_ENABLED_BACKUP=$DEVBOX_SHELL_ENABLED
8
+ use nix .devbox/gen/shell.nix
9
+ eval $(devbox shell --print-env)
10
+ export DEVBOX_SHELL_ENABLED=$DEVBOX_SHELL_ENABLED_BACKUP
11
+ fi
12
+}
13
+use devbox
14
15
+# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
16
+# for more details
0 commit comments