# Do not enable venv in terminal for bash-like oneshot task invocations \(\#8444\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/85fdcef564426db5582b68a99d31cd6433696d75)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 85fdcef564426db5582b68a99d31cd6433696d75

Requested commit: 85fdcef564426db5582b68a99d31cd6433696d75

Commit: 85fdcef564426db5582b68a99d31cd6433696d75

Tree: 82f64fc0a05fd546884e9e44ddacdb4a4f7391eb

Author: Stanislav Alekseev

Committer: GitHub

## Message

````
Do not enable venv in terminal for bash-like oneshot task invocations (#8444)

Release Notes:
- Work around #8334 by only activating venv in the terminal not in tasks
(see #8440 for a proper solution)
- To use venv modify your tasks in the following way:
```json
{
  "label": "Python main.py",
  "command": "sh",
  "args": ["-c", "source .venv/bin/activate && python3 main.py"]
}
```

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
````

## Parents

- [cd61297740bfa0001f932f61a83dd426f75b7ce3](https://git.cafe/gitcafe/zed/commit/cd61297740bfa0001f932f61a83dd426f75b7ce3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/85fdcef564426db5582b68a99d31cd6433696d75?format=markdown)
