Pretty one-line ZSH prompt based on @sindresorhus's Pure
Can be installed with npm
or manually. Requires Git 2.0.0+ and ZSH 5.2+.
$ npm install --global purer-prompt
Initialize the prompt system (if not so already) and choose purer
:
# .zshrc
autoload -U promptinit; promptinit
prompt purer
See Pure's readme for more detailed instructions.
Purer supports customization using Pure's environment variables, plus:
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.)
Defines how to display the path. Default value: %c
. See Prompt Expansion for more.
Purer MIT © David Furnes
Pure MIT © Sindre Sorhus