A pretty, minimal and fast Zsh prompt
open sourceMITfree
Pure is Sindre Sorhus's MIT-licensed minimal prompt for Zsh. It shows the Git branch and whether it's dirty, arrows for unpushed or unpulled commits (checked asynchronously), a prompt character that turns red after a failed command, the run time of slow commands, and the username and host only over SSH or in a container. It supports a VI-mode indicator, optional Git stash and Node.js version display, and nix-shell and Python virtualenv or Conda names. It installs from npm as pure-prompt, with Homebrew or by cloning, and needs Git 2.15.2+ and Zsh 5.2+.
Ways to install
Package managers
Problems it solves
- a fast minimal Zsh prompt that shows my git branch
- make my terminal prompt cleaner without a heavy framework
- show how long my last command took in the prompt
Features
- Git branch, dirty state and asynchronous push/pull arrows
- red prompt character after a failed command
- run time of slow commands
- user and host shown only over SSH or in containers
- VI-mode, virtualenv, Conda and nix-shell indicators
Limitations
- It needs Git 2.15.2 or later and Zsh 5.2 or later.2
Alternatives
The same job
These do what Pure does.
- Starship The minimal, blazing-fast, and infinitely customizable prompt for any shell!
- Powerlevel10k Fast, highly customizable prompt theme for Zsh
- Spaceship A minimal and highly customizable Zsh prompt that shows Git status, runtimes, Docker and Kubernetes context and more.
- Oh My Zsh Community framework for managing your Zsh configuration, with 300+ plugins and 140+ themes
- Oh My Posh The most customizable and fastest prompt engine for any shell
- Powerline Statusline and prompt framework for Vim, shells, tmux and window managers
