Files
zed/script
Kunall Banerjee 00250b90c6 Respect ZDOTDIR environment variable iff set (#49913)
When `ZDOTDIR` is set, `zsh` reads its configuration from that directory
instead of the user’s `$HOME` directory.

| Setup | `ZDOTDIR` set? | Script writes to | Zsh reads from | Match? |
|---|---|---|---|---|
| XDG + `ZDOTDIR` | ✅ | `$ZDOTDIR/.zshrc` | `$ZDOTDIR/.zshrc` | ✅ |
| XDG without `ZDOTDIR` | ❌ | `$HOME/.zshrc` | `$HOME/.zshrc` | ✅ |
| No XDG at all | ❌ | `$HOME/.zshrc` | `$HOME/.zshrc` | ✅ |


Ref: https://zsh.sourceforge.io/Intro/intro_3.html

Release Notes:

- N/A
2026-02-23 18:04:16 +00:00
..
…
…
…
2025-11-21 09:12:19 -07:00
2025-11-15 15:15:37 +01:00
2025-10-17 18:58:14 +00:00
2025-12-15 22:19:18 -07:00
…
…
…
2026-02-11 09:59:20 -07:00
…
2025-08-22 19:32:49 +00:00
…