Skip to content

franklouwers/purer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purer

Pretty one-line ZSH prompt based on @sindresorhus's Pure

purer

It is based on purer but adds support for kube-ps1 as an RPROMPT.

Install

Requires Git 2.0.0+ and ZSH 5.2+. Older versions of ZSH are known to work, but they are not recommended.

  1. I don't care. Install it with whatever tools you want. No hipster-style npm --global installation or other bullshit included.

  2. Symlink pure.zsh to somewhere in $fpath with the name prompt_pure_setup.

  3. Install zsh-async if it's not installed already.

Example

For a user-specific installation (which would not require escalated privileges), simply add a directory to $fpath for that user:

# .zshenv or .zshrc
fpath=( "$HOME/.zfunctions" $fpath )

Then install the theme there:

$ ln -s "$PWD/pure.zsh" "$HOME/.zfunctions/prompt_pure_setup"

See Pure's readme for more detailed instructions.

Customization

Purer supports customization using Pure's environment variables, plus:

PURE_PROMPT_SYMBOL_COLOR

Defines the prompt symbol color. The default value is magenta; you can use any colour name or numeric colour code (see zshzle(1) section Character Highlighting.)

PURE_PROMPT_PATH_FORMATTING

Defines how to display the path. Default value: %c. See Prompt Expansion for more.

License

Purer MIT © David Furnes
Pure MIT © Sindre Sorhus

About

🚰 A single-line ZSH prompt based on "Pure". Modified to include kube info as RPROMPT

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%