X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ff86fd35a22ff7e9e14762fdf9b29ec047f5c711..e45b0db3d66ca9e041622db3d801d026fb4d3724:/.zsh/zshrc/85_prompt?ds=sidebyside diff --git a/.zsh/zshrc/85_prompt b/.zsh/zshrc/85_prompt index 22a5e34..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