Task: Create a Bash Function to Detect Python Virtual Environment
Task: Create a Bash Function to Detect Python Virtual Environment: a task in Terminal-Lego-15k (Harbor dataset). Create a bash script that contains a function to reliably detect whether the current shell session is running inside a Python virtual environment. The function should return a clear…
The task
Create a bash script that contains a function to reliably detect whether the current shell session is running inside a Python virtual environment. The function should return a clear indicator (exit code or variable) that can be used in other scripts or conditional logic.
Part of PrimeIntellect/Terminal-Lego-15k.