diff options
author | Shav Kinderlehrer <[email protected]> | 2023-08-10 10:44:06 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-08-10 10:44:06 -0400 |
commit | 26ba41d08f86fc006edf9c0552205e2851a1060b (patch) | |
tree | 06446a566208b343edfd6ad8eec0258afa39ab73 /hook.zsh | |
parent | db53ee6c3bdd8d14c196f06b6377f2418779f82d (diff) | |
download | prim-26ba41d08f86fc006edf9c0552205e2851a1060b.tar.gz prim-26ba41d08f86fc006edf9c0552205e2851a1060b.zip |
Fix rendering issues + add git comp
Diffstat (limited to 'hook.zsh')
-rw-r--r-- | hook.zsh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,13 +1,14 @@ -setopt promptsubst - prompt_precmd() { - export PS1=`prim --ps1 --col $COLUMNS --row $LINES --status $?` - export RPS1=`prim --rps1 --col $COLUMNS --row $LINES --status $?` + 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 --status $?` +# 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 |