Pretty one-line ZSH prompt based on @sindresorhus's Pure
- Clone this repo somewhere. Here we'll use
$HOME/.zsh/pure
.
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
- Add the path of the cloned repo to
$fpath
in$HOME/.zshrc
.
# .zshrc
fpath+=($HOME/.zsh/pure)
Initialize the prompt system (if not so already) and choose pure
:
# .zshrc
autoload -U promptinit; promptinit
prompt pure
See pure's options.