X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/d1a7abb4d44890ae6605a73d246b2eaa20a09c08..d6a2e5acc380c42f9e74615a46513afaab15cf7e:/.zsh/zshrc/85_prompt?ds=sidebyside diff --git a/.zsh/zshrc/85_prompt b/.zsh/zshrc/85_prompt index 51fd9b5..ccb88e1 100644 --- a/.zsh/zshrc/85_prompt +++ b/.zsh/zshrc/85_prompt @@ -9,7 +9,7 @@ # if [ "${PS1:-}" = '%m%# ' ]; then - local _MIDDLE="${(%)psvar[1]}%(2v.|%B${(%)psvar[2]}%b|.)%(3v.${(%)psvar[3]}.)" + local _MIDDLE="%1v%(2v.|%B%2v%b|.)%(3v.%3v.)" 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