From 8860565d25111cac7c7529794e86f95b6fa42ec8 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 23 Jan 2024 08:50:42 -0500 Subject: [PATCH] chore: update devcontainer Signed-off-by: Devin Buhl --- .devcontainer/postCreateCommand.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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