summaryrefslogtreecommitdiff
path: root/hook.zsh
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-08-09 16:01:15 -0400
committerShav Kinderlehrer <[email protected]>2023-08-09 16:01:15 -0400
commit85f830ce4730da0489bc14d8726de7fb2dd0fc38 (patch)
tree811707c736ce7098b5655f018219c5093518f0a0 /hook.zsh
parent24c94e510ab9c016542b287e060c992c195d7987 (diff)
downloadprim-85f830ce4730da0489bc14d8726de7fb2dd0fc38.tar.gz
prim-85f830ce4730da0489bc14d8726de7fb2dd0fc38.zip
Add styles
Diffstat (limited to 'hook.zsh')
-rw-r--r--hook.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/hook.zsh b/hook.zsh
index 999b689..31aa142 100644
--- a/hook.zsh
+++ b/hook.zsh
@@ -1,12 +1,12 @@
setopt promptsubst
prompt_precmd() {
- export PS1=`prim --ps1 --col $COLUMNS --row $LINES`
- export RPS1=`prim --rps1 --col $COLUMNS --row $LINES`
+ export PS1=`prim --ps1 --col $COLUMNS --row $LINES --status $?`
+ export RPS1=`prim --rps1 --col $COLUMNS --row $LINES --status $?`
}
prompt_preexec() {
- print -P `prim --preexec --col $COLUMNS --row $LINES`
+ print -P `prim --preexec --col $COLUMNS --row $LINES --status $?`
}
add-zsh-hook precmd prompt_precmd