Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If possible, spawn login shell in user's home directory
This is related to #8188 and should fix two things: 1. It spawns a login shell that `cd`s into a users home directory, which causes tools like `asdf`, `mise`, `direnv`, ... to fire. That means that if I don't have `gopls` installed, for example, but `go` (via `mise`) that Zed will then use my `go` when launched from `Zed.app`. 2. It appends `exit 0;` to the login shell command. It's the same mysterious fix that we had in #8188 for the login shell. We thought that this shell here was immune but turns out it's not when launched via `cli` (`cargo build && cargo run -p cli --bin cli -- -b target/debug/Zed`).
- Loading branch information