Add brightbg colors

This commit is contained in:
Shav Kinderlehrer 2023-08-11 15:05:12 -04:00
parent 36c8b4d2d7
commit 106181f022
2 changed files with 15 additions and 7 deletions

View File

@ -1,14 +1,9 @@
prompt_precmd() { prompt_precmd() {
export PS1=$'`prim --ps1 --col $COLUMNS --row $LINES --status $? --pchar `' export PS1=$'`prim --ps1 --col "$COLUMNS" --row "$LINES" --status "$?" --pchar "*"`'
export RPS1=$'`prim --rps1 --col $COLUMNS --row $LINES --status $?`' export RPS1=$'`prim --rps1 --col "$COLUMNS" --row "$LINES" --status "$?"`'
}
prompt_preexec() {
# print -P `prim --preexec --col $COLUMNS --row $LINES --status $?`
} }
autoload -Uz add-zsh-hook autoload -Uz add-zsh-hook
setopt promptsubst setopt promptsubst
add-zsh-hook precmd prompt_precmd add-zsh-hook precmd prompt_precmd
add-zsh-hook preexec prompt_preexec

View File

@ -38,3 +38,16 @@ enum Bg {
def, def,
reset = 0 reset = 0
} }
enum BrightBg {
black = 100,
red,
green,
yellow,
blue,
magenta,
cyan,
white,
def,
reset = 0
}