# zshrc/80_prompt # # Formats the shell prompt # # Copyright © 1994–2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # Source repository: git://git.madduck.net/etc/zsh.git # is_root && _PS1_HL=U _PS1_PREFIX="%(2L.+.)%${_PS1_HL:=B}%m%${(L)_PS1_HL}" _PS1_PREFIX="$_PS1_PREFIX${debian_chroot:+/%S$debian_chroot%s}:" _PS1_SUFFIX='%# ' _make_ps1() { PS1="${_PS1_PREFIX}$@${_PS1_SUFFIX}" } [[ $PS1 = '%m%# ' ]] && _make_ps1 '%25<..<%~%<<' : ${RPS1:="#%(0?..%?,)%!"} # vim:ft=zsh