summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-03-09 11:44:13 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-03-09 11:44:13 +0100
commit8ca053002b72e57f0e63a8e40144e39123a9280d (patch)
tree2cad18174c30280d143eccbdc9de911381604dd6 /12_Prompts.zsh
parent6f7138379a0b764781a7bc2d7bae3c77d23adbe9 (diff)
[Prompt] spaceleft / Compilation
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh6
1 files changed, 4 insertions, 2 deletions
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 ()