Skip to content

armgit / zed

Public Imported from GitHub
0

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/cargo
index 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_profile
const bashrc = path.join(home, ".bashrc");