Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Respect `ZDOTDIR` environment variable iff set (#49913)
Kunall Banerjeee14f6e764eab
diff --git a/script/cargo b/script/cargoindex 0eb8e927d71..8226a2becdb 100755--- a/script/cargo+++ b/script/cargo@@ -53,7 +53,7 @@ function getShellConfigPath(shell) {const home = os.homedir();switch (shell) {case "zsh":- return path.join(home, ".zshrc");+ return path.join(process.env.ZDOTDIR || home, ".zshrc");case "bash":// Prefer .bashrc, fall back to .bash_profileconst bashrc = path.join(home, ".bashrc");