Skip to content

Instantly share code, notes, and snippets.

View Xeks4237's full-sized avatar
πŸ’­
Uses MS Edge on Gentoo...

Xeks Xeks4237

πŸ’­
Uses MS Edge on Gentoo...
  • 06:02 (UTC +04:00)
View GitHub Profile
@Xeks4237
Xeks4237 / README.md
Last active January 23, 2026 11:58
Simple gist with explanation of what each of the zsh config files are doind

Simple explanation of Zsh config files

Zsh loads files in special order, first it loads these files from /etc or /etc/zsh directories depending on which distro are you using: zshenv β†’ zprofile β†’ zshrc β†’ zlogin β†’ zlogout

Then it looks and loads these files from $HOME or if its set then from $ZDOTDIR directories: .zshenv β†’ .zprofile β†’ .zshrc β†’ .zlogin β†’ .zlogout

All files located under /etc or /etc/zsh are sourced system wide for every user while files located under $HOME or $ZDOTDIR are user specific and sourced for each users $HOME and $ZDOTDIR separately.