# Fix zed cli in NixOS WSL instances \(\#43433\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f75e7582e68236629b44999b3031fee3b0d991f4

Requested commit: f75e7582e68236629b44999b3031fee3b0d991f4

Commit: f75e7582e68236629b44999b3031fee3b0d991f4

Tree: d85a0bb689c9b2bacf4ef47d032f6aa30a0d105b

Author: Julia Ryan

Committer: GitHub

## Message

```
Fix zed cli in NixOS WSL instances (#43433)

This fixes running `zed <path>` inside nixos wsl instances. We're
copying the approach used elsewhere which is to try using `--exec`
first, and if that fails use an actual shell which should cover the
nixos case because it only puts binaries on your PATH inside the
`/etc/profile` script which is sourced on shell startup.

Release Notes:

- N/A

---------

Co-authored-by: John Tur <john-tur@outlook.com>
```

## Parents

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

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