diff --git a/script/cargo b/script/cargo index 0eb8e927d71c8a404b7ec723d7e7bbae8f482fed..8226a2becdbbcc27e5ad01b27f8479fea706fa5d 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");