X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/d1a7abb4d44890ae6605a73d246b2eaa20a09c08..e45b0db3d66ca9e041622db3d801d026fb4d3724:/.zsh/zshrc/85_prompt diff --git a/.zsh/zshrc/85_prompt b/.zsh/zshrc/85_prompt index 51fd9b5..6874ec3 100644 --- a/.zsh/zshrc/85_prompt +++ b/.zsh/zshrc/85_prompt @@ -2,14 +2,14 @@ # # Formats the shell prompt # -# Copyright © 1994–2008 martin f. krafft +# Copyright © 1994–2017 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: git://git.madduck.net/etc/zsh.git +# Source repository: http://git.madduck.net/v/etc/zsh.git # 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