Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. ZSH Plugins
  3. lean

lean

Apache-2.0Shell

A minimal, one-line ZSH prompt that shows only essential information and stays out of your way.

GitHubGitHub
159 stars40 forks0 contributors

What is lean?

Lean is a minimal, one-line ZSH prompt that evolved from the 'pure' prompt to offer a cleaner, single-line interface. It displays only essential information like the current directory, git status, and background jobs, utilizing the right side of the terminal to keep the left prompt sparse. The goal is to reduce visual clutter while providing context when needed.

Target Audience

ZSH users who prefer a minimalist terminal experience, especially those transitioning from multi-line prompts like 'pure' or seeking a configurable, unobtrusive prompt.

Value Proposition

Developers choose Lean for its balance of minimalism and functionality—it stays out of the way by default but reveals key details (like git dirty status or SSH indicators) precisely when they're relevant, all in a single line.

Overview

Pretty, minimal, one-line, fast ZSH prompt

Use Cases

Best For

  • ZSH users who want a cleaner alternative to two-line prompts like 'pure'
  • Terminal enthusiasts seeking a highly configurable and minimal prompt
  • Developers working in git repositories who need quick branch and dirty status visibility
  • Users who frequently SSH into remote servers and want clear host indicators
  • Tmux users who disable the status bar and need a visual tmux indicator
  • Anyone preferring a sparse terminal interface that maximizes screen real estate

Not Ideal For

  • Users who prefer always-visible, detailed multi-line prompts with constant information display
  • Developers working in mixed-shell environments where ZSH is not the primary shell
  • Teams seeking out-of-the-box prompts with extensive pre-styled themes and no configuration

Pros & Cons

Pros

Minimalist Sparse Design

Starts with only '%' and '~', revealing contextual info like git status or SSH indicators only when needed, keeping the terminal uncluttered as shown in the lean.gif example.

Efficient Space Usage

Utilizes the right side of the terminal for details like path and git info, leaving the left prompt clean for commands, which maximizes screen real estate.

Smart Git Integration

Shows truncated branch names and dirty status configurable via PROMPT_LEAN_VCS, providing essential version control info without visual overload.

Highly Configurable Options

Allows customization of colors with PROMPT_LEAN_COLOR1/2, path shortening methods, and toggles for features like Vim mode or tmux indicators.

Cons

ZSH-Only Dependency

Requires ZSH with PROMPT_SUBST set, limiting compatibility in environments using Bash or other shells, as noted in the Installation section.

Manual Configuration Overhead

Users must edit files like .zshrc to set variables and rely on plugin managers like zgen or prezto for installation, adding setup complexity.

Information Truncation Defaults

Branch names are truncated to 20 characters and paths shortened by default, which might obscure critical details for some workflows without customization.

Frequently Asked Questions

Quick Stats

Stars159
Forks40
Contributors0
Open Issues0
Last commit5 months ago
CreatedSince 2015

Tags

#productivity#minimalist#terminal#zsh-prompt#minimal#shell-customization#cli#tmux#git-integration#ssh#prompt#zsh

Built With

z
zsh

Included in

ZSH Plugins17.6k
Auto-fetched 9 hours ago

Related Projects

powerlevel10kpowerlevel10k

A Zsh theme

Stars55,053
Forks2,443
Last commit1 day ago
spaceshipspaceship

🚀✨ Minimalistic, powerful and extremely customizable Zsh prompt

Stars20,573
Forks973
Last commit6 days ago
purepure

Pretty, minimal and fast ZSH prompt

Stars14,414
Forks1,008
Last commit1 month ago
powerlevel9kpowerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.

Stars13,409
Forks912
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub