X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/94d636df611af7488796321ab0eddd1d5710f5a7..e05c9ebaca10e64b6724b95fcafcb7af14ade43b:/.zsh/zshrc/80_prompt diff --git a/.zsh/zshrc/80_prompt b/.zsh/zshrc/80_prompt index dfedff9..95ea67d 100644 --- a/.zsh/zshrc/80_prompt +++ b/.zsh/zshrc/80_prompt @@ -14,7 +14,13 @@ if is_root; then _MIDDLE="%25<..<%~%<<" _PS1_HL=U fi -PS1="%${_PS1_HL:=B}%m%${(L)_PS1_HL}:${_MIDDLE}%# " + +_MACHINE_NAME="${_PS1_HL:=B}%m%${(L)_PS1_HL}" +_MACHINE_NAME="$_MACHINE_NAME${debian_chroot:+/$debian_chroot}" + +PS1="%(2L.+.)%${_MACHINE_NAME}:${_MIDDLE}%# " RPS1="#%(0?..%?,)%!" +unset _MACHINE_NAME + # vim:ft=zsh