# Add basic bash and Python tasks \(\#10548\) · gitcafe/zed

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

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

Visibility: public

Requested revision: db48c75231a73ae0ad07667429fa88a460c966d8

Requested commit: db48c75231a73ae0ad07667429fa88a460c966d8

Commit: db48c75231a73ae0ad07667429fa88a460c966d8

Tree: 668103bdb2e25020778fbf5999f733b9409a06c4

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Add basic bash and Python tasks (#10548)

Part of https://github.com/zed-industries/zed/issues/5141

* adds "run selection" and "run file" tasks for bash and Python.
* replaces newlines with `\n` symbols in the human-readable task labels
* properly escapes task command arguments when spawning the task in
terminal

Caveats:

* bash tasks will always use user's default shell to spawn the
selections, but they should rather respect the shebang line even if it's
not selected
* Python tasks will always use `python3` to spawn its tasks now, as
there's no proper mechanism in Zed to deal with different Python
executables

Release Notes:

- Added tasks for bash and Python to execute selections and open files
in terminal
```

## Parents

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

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