Add brightbg colors
This commit is contained in:
parent
36c8b4d2d7
commit
106181f022
9
hook.zsh
9
hook.zsh
@ -1,14 +1,9 @@
|
||||
prompt_precmd() {
|
||||
export PS1=$'`prim --ps1 --col $COLUMNS --row $LINES --status $? --pchar ❯`'
|
||||
export RPS1=$'`prim --rps1 --col $COLUMNS --row $LINES --status $?`'
|
||||
}
|
||||
|
||||
prompt_preexec() {
|
||||
# print -P `prim --preexec --col $COLUMNS --row $LINES --status $?`
|
||||
export PS1=$'`prim --ps1 --col "$COLUMNS" --row "$LINES" --status "$?" --pchar "*"`'
|
||||
export RPS1=$'`prim --rps1 --col "$COLUMNS" --row "$LINES" --status "$?"`'
|
||||
}
|
||||
|
||||
autoload -Uz add-zsh-hook
|
||||
setopt promptsubst
|
||||
|
||||
add-zsh-hook precmd prompt_precmd
|
||||
add-zsh-hook preexec prompt_preexec
|
||||
|
@ -38,3 +38,16 @@ enum Bg {
|
||||
def,
|
||||
reset = 0
|
||||
}
|
||||
|
||||
enum BrightBg {
|
||||
black = 100,
|
||||
red,
|
||||
green,
|
||||
yellow,
|
||||
blue,
|
||||
magenta,
|
||||
cyan,
|
||||
white,
|
||||
def,
|
||||
reset = 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user