Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use_devbox() {
watch_file devbox.json
if [ -f .devbox/gen/flake/flake.nix ]; then
DEVBOX_SHELL_ENABLED_BACKUP=$DEVBOX_SHELL_ENABLED
eval $(devbox shellenv --init-hook)
eval "$(devbox shellenv --init-hook)"
export DEVBOX_SHELL_ENABLED=$DEVBOX_SHELL_ENABLED_BACKUP
fi
}
Expand Down
14 changes: 12 additions & 2 deletions examples/cloud_development/temporal/.envrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Automatically sets up your devbox environment whenever you cd into this
# directory via our direnv integration:

use_devbox() {
watch_file devbox.json
eval $(devbox shell --print-env)
if [ -f .devbox/gen/flake/flake.nix ]; then
DEVBOX_SHELL_ENABLED_BACKUP=$DEVBOX_SHELL_ENABLED
eval "$(devbox shellenv --init-hook)"
export DEVBOX_SHELL_ENABLED=$DEVBOX_SHELL_ENABLED_BACKUP
fi
}
use devbox
use devbox

# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
# for more details
2 changes: 1 addition & 1 deletion examples/data_science/jupyter/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use_devbox() {
watch_file devbox.json
if [ -f .devbox/gen/flake/flake.nix ]; then
DEVBOX_SHELL_ENABLED_BACKUP=$DEVBOX_SHELL_ENABLED
eval $(devbox shell --print-env)
eval "$(devbox shellenv --init-hook)"
export DEVBOX_SHELL_ENABLED=$DEVBOX_SHELL_ENABLED_BACKUP
fi
}
Expand Down
2 changes: 1 addition & 1 deletion examples/development/ruby/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use_devbox() {
watch_file devbox.json
if [ -f .devbox/gen/flake/flake.nix ]; then
DEVBOX_SHELL_ENABLED_BACKUP=$DEVBOX_SHELL_ENABLED
eval $(devbox shell --print-env)
eval "$(devbox shellenv --init-hook)"
export DEVBOX_SHELL_ENABLED=$DEVBOX_SHELL_ENABLED_BACKUP
fi
}
Expand Down
2 changes: 1 addition & 1 deletion examples/servers/nginx/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use_devbox() {
watch_file devbox.json
if [ -f .devbox/gen/flake/flake.nix ]; then
DEVBOX_SHELL_ENABLED_BACKUP=$DEVBOX_SHELL_ENABLED
eval $(devbox shell --print-env)
eval "$(devbox shellenv --init-hook)"
export DEVBOX_SHELL_ENABLED=$DEVBOX_SHELL_ENABLED_BACKUP
fi
}
Expand Down
2 changes: 1 addition & 1 deletion examples/stacks/jekyll/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use_devbox() {
watch_file devbox.json
if [ -f .devbox/gen/flake/flake.nix ]; then
DEVBOX_SHELL_ENABLED_BACKUP=$DEVBOX_SHELL_ENABLED
eval $(devbox shell --print-env)
eval "$(devbox shellenv --init-hook)"
export DEVBOX_SHELL_ENABLED=$DEVBOX_SHELL_ENABLED_BACKUP
fi
}
Expand Down