X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/29ff3db6dd936515eef1d15b34a42b6ffca4f4a5..ff86fd35a22ff7e9e14762fdf9b29ec047f5c711:/.zsh/zshrc/85_prompt?ds=inline

diff --git a/.zsh/zshrc/85_prompt b/.zsh/zshrc/85_prompt
index 5ddbe82..22a5e34 100644
--- a/.zsh/zshrc/85_prompt
+++ b/.zsh/zshrc/85_prompt
@@ -9,7 +9,7 @@
 #
 
 if [ "${PS1:-}" = '%m%# ' ]; then
-  local _MIDDLE="%1v%(2v.|%B%2v%b|.)%(3v.%3v.)"
+  local _MIDDLE="${(%)psvar[1]}%(2v.|%B${(%)psvar[2]}%b|.)%(3v.${(%)psvar[3]}.)"
   if is_root; then
     _MIDDLE="%25<…<%~%<<"
     local _PS1_HL=U
@@ -21,6 +21,6 @@ if [ "${PS1:-}" = '%m%# ' ]; then
   PS1="%(2L.+.)%${_MACHINE_NAME}:${_MIDDLE}%# "
 fi
 
-: ${RPS1:="#%(0?..%?,)%!"}
+: ${RPS1:="#%(0?..%?,)%! [%l]"}
 
 # vim:ft=zsh