From 7b70cffc0e9d277b5d5c4d3a9feb40c6f65efa42 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Mon, 8 Jan 2018 12:22:35 -0500 Subject: [PATCH] [prompt] eriner: Simplify help message and use PS1 and `RPS1`, instead of `PROMPT` and `RPROMPT`, as suggested by the zsh manual at `man zshcontrib`, under "Writing Themes": > By convention, themes use `PS1`, `PS2`, `RPS1`, etc., rather than the longer `PROMPT` and `RPROMPT`. --- modules/prompt/themes/eriner.zsh-theme | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/prompt/themes/eriner.zsh-theme b/modules/prompt/themes/eriner.zsh-theme index a484a3e..65c2bd9 100644 --- a/modules/prompt/themes/eriner.zsh-theme +++ b/modules/prompt/themes/eriner.zsh-theme @@ -20,10 +20,10 @@ prompt_eriner_help () { cat < [ [ []]]] + prompt eriner [status_color] [pwd_color] [git_clean_color] [git_dirty_color] where the parameters are the background colors for each segment. The default -colors are black, cyan, green, yellow. +values are black, cyan, green, and yellow. In order for this prompt to render correctly, a font with Powerline symbols is required. A simple way to install a font with Powerline symbols is to follow @@ -126,8 +126,8 @@ prompt_eriner_setup() { 'prompt' '%b%c%s' \ 'color' '%C%D' - PROMPT="\${(e)\$(prompt_eriner_main ${@:1:2})}" - RPROMPT='' + PS1="\${(e)\$(prompt_eriner_main ${@:1:2})}" + RPS1='' } prompt_eriner_preview () {