X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/1f53b63076926ef107edd4f2ff38f8cd73ef7234..a8f1ccafb8cc593670ddcda3f17ef83af8950a94:/base/.zsh/prompt_ds6_setup diff --git a/base/.zsh/prompt_ds6_setup b/base/.zsh/prompt_ds6_setup index 77c1a6d..b1f5613 100644 --- a/base/.zsh/prompt_ds6_setup +++ b/base/.zsh/prompt_ds6_setup @@ -70,6 +70,7 @@ function prompt_ds6_setup() { zstyle ':vcs_info:git*' unstagedstr "%F{$r}*" add-zsh-hook precmd prompt_ds6_precmd + add-zsh-hook preexec prompt_ds6_preexec zle -N zle-line-init zle -A zle-line-init zle-keymap-select } @@ -80,10 +81,14 @@ function zle-line-init { zle reset-prompt } -function prompt_ds6_precmd() { +function prompt_ds6_precmd { # TODO: check if vcs_info is autoloaded vcs_info } +function prompt_ds6_preexec { + print -Pn "%F{red}<<<%f " +} + prompt_ds6_setup "$@" # vim: set et fenc=utf-8 ft=zsh sts=4 sw=4 ts=8 tw=0 :