rainbow-zsh-prompt makes your zsh prompt rainbow by using dosentmatter/lolcat.
If you are looking for a rainbow prompt for bash, check out dosentmatter/rainbow-bash-prompt
rainbow-zsh-prompt is a zsh port of dosentmatter/rainbow-bash-prompt.
This demo is from rainbow-bash-prompt, but they function pretty much the same.
Tested on macOS Sierra (Terminal and iTerm2)
$PATH
and name it lolcat-c
.zsh_prompt
to your $HOME
directory.zshrc
:
if [[ -f ~/.zsh_prompt ]]; then
. ~/.zsh_prompt
fi
PS1_DEBUG
to 'true'
or 'false'
. Debugging is used to show the non-printing characters and highlight them.PS1
by setting PS1_COLORIZE_COMMAND
to a name of a function.
'__ps1_lolcat'
which uses lolcat-c
for speed.PS1_DEBUG_COMMAND
to a name of a function.
__ps1_debug
which displays non-printing characters and colors them.