From 8ca053002b72e57f0e63a8e40144e39123a9280d Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 9 Mar 2012 11:44:13 +0100 Subject: [Prompt] spaceleft / Compilation --- 12_Prompts.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '12_Prompts.zsh') diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 13ec48c..7ec76fd 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -189,6 +189,9 @@ __update_prompt_elements() ## Second line of prompt : don't let the path garbage the entire line ## + unset COMPILATION + __compilation 2>&- + # get cvs tag # CVSTAG="" @@ -238,7 +241,7 @@ __update_prompt_elements() PATHSIZE=${#PATHSIZE} [ "$DEBUG" = "yes" ] && echo [ "$DEBUG" = "yes" ] && echo -n " Resize path / gitbranch..." - spaceleft=`print -Pn "$SHLVL - %n@%m $ ls -laCdtrux $(__expand_text "$DATE")"` + spaceleft=`__expand_text "%n@%m${DISPLAY:+($DISPLAY)}$COMPILATION $ ls -laCdtrux $DATE"` spaceleft=$(($COLUMNS - ${#spaceleft})) #minimalpathsize=`print -Pn "../%1~"` #minimalpathsize=${#minimalpathsize} @@ -273,7 +276,6 @@ __update_prompt_elements() VCSBRANCH=$CVSTAG$SVNREV$GITBRANCH$HGBRANCH - __compilation 2>&- } __redefine_prompt () -- cgit v1.2.3