1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

[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`.
This commit is contained in:
Eric Nielsen 2018-01-08 12:22:35 -05:00
parent ae133abca9
commit 7b70cffc0e

View file

@ -20,10 +20,10 @@ prompt_eriner_help () {
cat <<EOH cat <<EOH
This prompt is color-scheme-able. You can customize it using: This prompt is color-scheme-able. You can customize it using:
prompt eriner [<status> [<pwd> [<git_clean> [<git_dirty>]]]] prompt eriner [status_color] [pwd_color] [git_clean_color] [git_dirty_color]
where the parameters are the background colors for each segment. The default 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 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 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' \ 'prompt' '%b%c%s' \
'color' '%C%D' 'color' '%C%D'
PROMPT="\${(e)\$(prompt_eriner_main ${@:1:2})}" PS1="\${(e)\$(prompt_eriner_main ${@:1:2})}"
RPROMPT='' RPS1=''
} }
prompt_eriner_preview () { prompt_eriner_preview () {