How sindresorhus/pure works
Pure is a Zsh prompt: after a command runs, the shell renders a concise prompt with status, duration, location, and optional context such as Git state. The README documents asynchronous Git updates, environment integrations, terminal titles, VI-mode indication, and customization. The source excerpts contain no runtime code, so component paths identify the available prompt and async files; relationships below are limited to documented behavior rather than inferred calls.
Main entry points: pure.zsh Pure prompt · async.zsh Async worker
Components 17
Prompt display
- Pure prompt
pure.zsh - Prompt symbol
pure.zsh - Command status
pure.zsh - Execution time
pure.zsh - Current path
pure.zsh
Git status
- Git branch and dirtiness
pure.zsh - Remote commit status
pure.zsh - Async worker
async.zsh
Shell context
- Environment indicators
pure.zsh - Host and user
pure.zsh - Terminal title
pure.zsh - VI-mode indicator
pure.zsh
Customization
- Custom prompt hook
pure.zsh
Other components
- Shell user
- Zsh shell
- Git
- Terminal
Connections 16
- Shell user → Zsh shell: runs commands
readme.md - Zsh shell → Pure prompt: renders prompt
readme.md - Pure prompt → Prompt symbol: shows symbol
readme.md - Pure prompt → Command status: indicates failure
readme.md - Pure prompt → Execution time: shows duration
readme.md - Pure prompt → Current path: shows current path
readme.md - Pure prompt → Git branch and dirtiness: shows branch state
readme.md - Pure prompt → Remote commit status: checks remote commits
readme.md - Pure prompt → Async worker: checks asynchronously
readme.md - Async worker → Git: checks commits
readme.md - Pure prompt → Environment indicators: shows environment
readme.md - Pure prompt → Host and user: shows when relevant
readme.md - Pure prompt → Terminal title: sets title
readme.md - Terminal title → Terminal: updates title
readme.md - Pure prompt → VI-mode indicator: indicates mode
readme.md - Pure prompt → Custom prompt hook: calls hook
readme.md