From b4eae751bc38e4f3e5e7dfa321fa93d330053ad9 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 9 May 2008 11:53:51 +0100 Subject: [PATCH] add debian_chroot to prompt --- .zsh/zshrc/80_prompt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zsh/zshrc/80_prompt b/.zsh/zshrc/80_prompt index 41763ac..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="%(2L.+.)%${_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 -- 2.39.5