mirror of https://github.com/bjeanes/dotfiles.git
Experiment with 2-line ZSH prompt
parent
3eb8b8be6a
commit
5f99942c10
|
@ -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=""
|
||||||
|
|
Loading…
Reference in New Issue