Add blank line before zsh prompt

This allows to easily switch to tmux copy mode and navigate between
paragraphs / prompts and results. As long as the output doesn't have
additional blank lines.
This commit is contained in:
Daniel Siepmann 2023-03-08 10:03:44 +01:00
parent 1e335d2ad2
commit d87b854c49
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -53,7 +53,7 @@ nix_subshell () {
}
add-zsh-hook precmd nix_subshell
PROMPT=$'%{$fg[${prompt_color}]%}%1~ > %{$reset_color%}'
PROMPT=$'\n%{$fg[${prompt_color}]%}%1~ > %{$reset_color%}'
zstyle ':completion:*:descriptions' format '%F{blue}-- %d --%f'
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'