2023-08-09 17:57:38 +00:00
|
|
|
|
prompt_precmd() {
|
2023-08-10 15:50:57 +00:00
|
|
|
|
export PS1=$'`prim --ps1 --col $COLUMNS --row $LINES --status $? --pchar ❯`'
|
2023-08-10 14:44:06 +00:00
|
|
|
|
export RPS1=$'`prim --rps1 --col $COLUMNS --row $LINES --status $?`'
|
2023-08-09 17:57:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-09 19:05:26 +00:00
|
|
|
|
prompt_preexec() {
|
2023-08-10 14:44:06 +00:00
|
|
|
|
# print -P `prim --preexec --col $COLUMNS --row $LINES --status $?`
|
2023-08-09 19:05:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-10 14:44:06 +00:00
|
|
|
|
autoload -Uz add-zsh-hook
|
|
|
|
|
setopt promptsubst
|
|
|
|
|
|
2023-08-09 17:57:38 +00:00
|
|
|
|
add-zsh-hook precmd prompt_precmd
|
2023-08-09 19:05:26 +00:00
|
|
|
|
add-zsh-hook preexec prompt_preexec
|