diff options
author | Shav Kinderlehrer <[email protected]> | 2023-08-11 15:05:12 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-08-11 15:05:12 -0400 |
commit | 106181f022081d79ed4ba19a23863e5d2f8b0f6c (patch) | |
tree | 3d0c521e016ca12e58b84ca7bdb1e12fafc0e6ec | |
parent | 36c8b4d2d776db3e1e4e84f6b0a8eb1f00f198d1 (diff) | |
download | prim-106181f022081d79ed4ba19a23863e5d2f8b0f6c.tar.gz prim-106181f022081d79ed4ba19a23863e5d2f8b0f6c.zip |
Add brightbg colors
-rw-r--r-- | hook.zsh | 9 | ||||
-rw-r--r-- | source/style/color.d | 13 |
2 files changed, 15 insertions, 7 deletions
@@ -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 diff --git a/source/style/color.d b/source/style/color.d index 8576e56..01159ec 100644 --- a/source/style/color.d +++ b/source/style/color.d @@ -38,3 +38,16 @@ enum Bg { def, reset = 0 } + +enum BrightBg { + black = 100, + red, + green, + yellow, + blue, + magenta, + cyan, + white, + def, + reset = 0 +} |