First off, thank you for considering contributing to DistroZSH. This project stays small, fast, and framework-free by design — please keep that philosophy in mind.
This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code.
Open an issue using the bug report template. Include:
- Your distribution and version (paste
cat /etc/os-release). - Your zsh version (
zsh --version). - The DistroZSH version.
- The exact steps to reproduce and the observed vs. expected behaviour.
- Any relevant error output.
Open an issue using the feature request template. Prefer issues over "drive-by" PRs for large changes so the design can be discussed first.
- Add the distribution to the registry in both
zsh/11-detect.zshandscripts/distro-detect.sh(label, theme, package manager). - Create
themes/<id>.zshfromthemes/_template.zsh. - Regenerate screenshots with
./scripts/make-screenshots.sh. - Update the supported-distributions table in
README.md. - Add a
CHANGELOG.mdentry.
- Create
layouts/<name>.zshdefining the_distrozsh_promptfunction. - Only structure goes in layouts — colors come from the active theme.
- Regenerate screenshots and update
docs/LAYOUTS.mdandconfig.zsh.
- ShellCheck clean (
shellcheck --shell=bashfor.sh,zsh -nfor.zsh). - Consistent formatting (two-space indent in bash, four-space in zsh modules,
enforced by
.editorconfig). - One concern per module; keep functions small and documented.
- No new dependencies. Everything must work with native ZSH.
- No frameworks. Only
zsh-autosuggestionsandzsh-syntax-highlightingare allowed as plugins, and only when sourced from the distribution package. - Update
CHANGELOG.mdwith every user-visible change.
Every change that touches shell code must keep the full suite green:
make check # lint + syntax check + test suitemake check runs exactly what CI runs: ShellCheck on the bash scripts,
zsh -n/bash -n syntax checks on every script, and ./tests/run.sh. You can
also run a single test file directly:
./tests/run.sh t-command-not-found.zshWhen you change detection behaviour, add a fixture
(tests/fixtures/*.os-release) and a case in tests/t-detect-engine.zsh /
tests/t-distro-detect-sh.zsh.
git clone https://github.com/your-name/DistroZSH.git
cd DistroZSH
# preview a single prompt
./scripts/preview.sh fedora kali
# regenerate the screenshot matrix
./scripts/make-screenshots.sh
# validate (lint + syntax + tests — exactly what CI runs)
make checkTest the installer in a sandbox without touching your real configuration:
mkdir -p /tmp/dzsh-home
HOME=/tmp/dzsh-home ./install.sh --no-shell
HOME=/tmp/dzsh-home zsh -ic 'echo $DISTROZSH_VERSION'
HOME=/tmp/dzsh-home ./uninstall.sh- Create a branch:
git checkout -b feat/my-feature. - Make your changes and validate them (see above).
- Open a PR using the pull request template.
- Keep PRs focused. Reference the issue you are addressing.
Open a discussion or issue; maintainers and contributors will respond as soon as possible.