diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh index 9761c83b..2c1983ee 100755 --- a/.devcontainer/postCreateCommand.sh +++ b/.devcontainer/postCreateCommand.sh @@ -1,5 +1,13 @@ #!/usr/bin/env bash +# Hook direnv into zsh +if [[ -f "/home/vscode/.zshrc" ]]; then + echo -e 'eval "$(direnv hook zsh)"' >> /home/vscode/.zshrc +fi + +# Export the direnv environment variables +task workstation:direnv + # Remove the .venv directory rm -rf .venv