Skip to content

Commit

Permalink
devbox commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wardnath committed Dec 15, 2024
1 parent 4d27cac commit f1f4c9b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions chezmoi/dot_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@ export PATH="/usr/local/bin:/usr/local/sbin:${HOME}/.local/bin:$PATH"

export XDG_DATA_DIRS="$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:/root/.local/share/flatpak/exports/share"

if [ -z "$VIRTUAL_ENV" ]; then
echo "No virtual environment is active. Activating $VENV_DIR..."
# Activate the virtual environment
source "$VENV_DIR/bin/activate"
if [ $? -eq 0 ]; then
echo "Virtual environment activated successfully."
else
echo "Failed to activate virtual environment at $VENV_DIR."
exit 1
fi
else
echo "Virtual environment already active: $VIRTUAL_ENV"
fi

0 comments on commit f1f4c9b

Please sign in to comment.