Experiment with 2-line ZSH prompt

Bo Jeanes 2017-04-02 10:18:39 +10:00
parent 3eb8b8be6a
commit 5f99942c10
1 changed files with 3 additions and 3 deletions

View File

@ -109,11 +109,11 @@ function default_precmd {
rev="${rev/\(svn\)/↯}" rev="${rev/\(svn\)/↯}"
local left right local left right
left=($(user_at_host) $cwd $char) left=($(user_at_host) $cwd)
right=($rev $ruby $time) right=($rev $ruby $time)
PS1="$left " PS1=$left$'\n'$char' '
RPS1=" $right" RPS1="%{$(echotc UP 1)%}$right%{$(echotc DO 1)%}"
else else
PS1="$ " PS1="$ "
RPS1="" RPS1=""