Home

Awesome

zsh-clean

Showcase

A pure varient however.

Clean is not pure and pure is not clean

Installation

Now integrates directly with zsh prompt

  1. Add to your this repo to your fpath
  2. Select your theme with prompt clean

antigen

antigen bundle BrandonRoehl/zsh-clean
# defaults to executing `prompt clean` or `prompt clean 256`
# based on your terminal

zsh stock

autoload -U promptinit
fpath=($prompt_themes /path/to/repo)
promptinit

prompt clean # for Xterm
prompt clean 256 # for Xterm 256

Configuration

Add styles to your .zshrc these are the defaults


## Checking vcs
# Global vcs_info
# Check if there are modifications and staged changes
zstyle ':vcs_info:*' get-revision true
# Clean only
# Check for untracked files
zstyle ':vcs_info:*' check-for-untracked true
# Check for prompt arrows up and down
zstyle ':vcs_info:*' check-head true

## Symbols
# Modified sym
zstyle ':vcs_info:*' unstagedstr '*'
# Staged sym
zstyle ':vcs_info:*' stagedstr '+'
# Untracked sym
zstyle ':vcs_info:*:clean:*' untrackedstr '.'
# Your head is behind remote
zstyle ':vcs_info:*:clean:*' headbehindstr '⇣'
# Your head is ahead remote
zstyle ':vcs_info:*:clean:*' headaheadstr '⇡'
# Prompt symbol
zstyle ':clean:normal:*' prompt-symbol '❯'
# Prompt symbol as root user
zstyle ':clean:root:*' prompt-symbol '#'

# Note that the * can be replaced with the vcs
# Example these are the symbols that will be used in a git repo
zstyle ':vcs_info:git:*' unstagedstr 'G*'
zstyle ':vcs_info:git:*' stagedstr 'G+'
zstyle ':vcs_info:git:clean:*' untrackedstr 'G.'
# only works with the vcs_info ones matching :vcs_info:svn:context:-all-

Goals

Pure's main goal is to produce a really minimalistic setup and nothing in the prompt.

While as in clean's main goal is to produce a clean code base with no dependencies as well as supporting tons of customization.

So customizing the prompt to be supper crazy and over the top complicated Or be a single line

Differences

PureClean
Requires Dependencies for asyncAsync prompt replacement without
Isn't customizableCan completly replace the prompt
Custom methods for vcsUses vcs_info hooks
Doesn't show breakdown of vcsShows the breakdown like most other git prompts
Only works with gitWorks with git hg svn and all others that vcs_info supports