15 lines
381 B
Bash
15 lines
381 B
Bash
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 $?`
|
||
}
|
||
|
||
autoload -Uz add-zsh-hook
|
||
setopt promptsubst
|
||
|
||
add-zsh-hook precmd prompt_precmd
|
||
add-zsh-hook preexec prompt_preexec
|