Files
home-cluster/.devcontainer/postCreateCommand.sh
T
2024-01-23 08:50:42 -05:00

16 lines
318 B
Bash
Executable File

#!/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
# Create a new virtual environment
task workstation:venv