# sorin-ionescu/prezto architecture

> Architecture diagram of the GitHub repository sorin-ionescu/prezto, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sorin-ionescu/prezto
- Repository: https://github.com/sorin-ionescu/prezto

## Overview

Prezto is a Zsh configuration framework. A user installs its runcom configuration, starts Zsh, and selects modules in `.zpreztorc`; the framework then provides command-line defaults, aliases, functions, completion, and prompt themes. The README documents this setup and the major capabilities, but no source excerpts were supplied, so internal loading and runtime call relationships are not inferred.

Main entry points: [`modules`](https://github.com/sorin-ionescu/prezto/tree/master/modules) (Module collection), [`runcoms/zpreztorc`](https://github.com/sorin-ionescu/prezto/blob/master/runcoms/zpreztorc) (Module selection), [`modules/prompt`](https://github.com/sorin-ionescu/prezto/tree/master/modules/prompt) (Prompt themes), [`runcoms`](https://github.com/sorin-ionescu/prezto/tree/master/runcoms) (Zsh runcoms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Shell setup"]
  node_runcoms["Zsh runcoms"]
  node_module_config["Module selection"]
  node_framework["Prezto entrypoint<br/>[init.zsh]"]
end

subgraph group_modules["Zsh modules"]
  node_module_collection["Module collection"]
  node_external_modules["External modules"]
end

subgraph group_interactive["Interactive features"]
  node_shell_defaults["Shell defaults"]
  node_aliases_functions["Aliases and functions"]
  node_completion["Completion"]
  node_autosuggestions["Autosuggestions"]
  node_syntax_highlighting["Syntax highlighting"]
  node_prompt["Prompt themes"]
  node_git["Git features"]
end

node_user(("Zsh user"))
node_zsh["Zsh shell"]

node_user -->|"installs configuration"| node_runcoms
node_runcoms -->|"configures startup"| node_zsh
node_user -->|"selects modules"| node_module_config
node_module_config -->|"loads framework"| node_framework
node_module_config -->|"loads modules"| node_module_collection
node_module_collection -->|"provides defaults"| node_shell_defaults
node_module_collection -->|"provides features"| node_aliases_functions
node_module_collection -->|"provides completion"| node_completion
node_module_collection -.->|"provides suggestions"| node_autosuggestions
node_module_collection -.->|"provides highlighting"| node_syntax_highlighting
node_module_collection -->|"provides themes"| node_prompt
node_user -->|"lists or previews"| node_prompt
node_prompt -.->|"may require"| node_git
node_module_config -->|"adds module directories"| node_external_modules

click node_runcoms "https://github.com/sorin-ionescu/prezto/tree/master/runcoms"
click node_module_config "https://github.com/sorin-ionescu/prezto/blob/master/runcoms/zpreztorc"
click node_framework "https://github.com/sorin-ionescu/prezto/blob/master/init.zsh"
click node_module_collection "https://github.com/sorin-ionescu/prezto/tree/master/modules"
click node_shell_defaults "https://github.com/sorin-ionescu/prezto/tree/master/modules/environment"
click node_aliases_functions "https://github.com/sorin-ionescu/prezto/tree/master/modules/utility"
click node_completion "https://github.com/sorin-ionescu/prezto/tree/master/modules/completion"
click node_autosuggestions "https://github.com/sorin-ionescu/prezto/tree/master/modules/autosuggestions"
click node_syntax_highlighting "https://github.com/sorin-ionescu/prezto/tree/master/modules/syntax-highlighting"
click node_prompt "https://github.com/sorin-ionescu/prezto/tree/master/modules/prompt"
click node_git "https://github.com/sorin-ionescu/prezto/tree/master/modules/git"
click node_external_modules "https://github.com/sorin-ionescu/prezto/tree/master/modules"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_runcoms,node_module_config,node_framework,node_user toneBlue
class node_module_collection,node_external_modules toneAmber
class node_shell_defaults,node_aliases_functions,node_completion,node_autosuggestions,node_syntax_highlighting,node_prompt,node_git toneMint
class node_zsh toneIndigo
```

## Components

### Shell setup

- [Zsh runcoms](https://github.com/sorin-ionescu/prezto/tree/master/runcoms): `runcoms`
- [Module selection](https://github.com/sorin-ionescu/prezto/blob/master/runcoms/zpreztorc): `runcoms/zpreztorc`
- [Prezto entrypoint](https://github.com/sorin-ionescu/prezto/blob/master/init.zsh): `init.zsh`

### Zsh modules

- [Module collection](https://github.com/sorin-ionescu/prezto/tree/master/modules): `modules`
- [External modules](https://github.com/sorin-ionescu/prezto/tree/master/modules): `modules`

### Interactive features

- [Shell defaults](https://github.com/sorin-ionescu/prezto/tree/master/modules/environment): `modules/environment`
- [Aliases and functions](https://github.com/sorin-ionescu/prezto/tree/master/modules/utility): `modules/utility`
- [Completion](https://github.com/sorin-ionescu/prezto/tree/master/modules/completion): `modules/completion`
- [Autosuggestions](https://github.com/sorin-ionescu/prezto/tree/master/modules/autosuggestions): `modules/autosuggestions`
- [Syntax highlighting](https://github.com/sorin-ionescu/prezto/tree/master/modules/syntax-highlighting): `modules/syntax-highlighting`
- [Prompt themes](https://github.com/sorin-ionescu/prezto/tree/master/modules/prompt): `modules/prompt`
- [Git features](https://github.com/sorin-ionescu/prezto/tree/master/modules/git): `modules/git`

### Other components

- **Zsh user**
- **Zsh shell**

## Connections

- Zsh user → Zsh runcoms: installs configuration (evidence: `README.md`)
- Zsh runcoms → Zsh shell: configures startup (evidence: `README.md`)
- Zsh user → Module selection: selects modules (evidence: `README.md`)
- Module selection → Prezto entrypoint: loads framework (evidence: `README.md`)
- Module selection → Module collection: loads modules (evidence: `README.md`)
- Module collection → Shell defaults: provides defaults (evidence: `README.md`)
- Module collection → Aliases and functions: provides features (evidence: `README.md`)
- Module collection → Completion: provides completion (evidence: `README.md`)
- Module collection → Autosuggestions: provides suggestions
- Module collection → Syntax highlighting: provides highlighting
- Module collection → Prompt themes: provides themes (evidence: `README.md`)
- Zsh user → Prompt themes: lists or previews (evidence: `README.md`)
- Prompt themes → Git features: may require (evidence: `README.md`)
- Module selection → External modules: adds module directories (evidence: `README.md`)
