From 2813ab27ff1518611f8cd9fdcf9e08d81ca2205c Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Wed, 5 Jan 2011 15:56:09 +0100 Subject: [PATCH] limit the tmxu title to one word --- prompt.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prompt.zsh b/prompt.zsh index ca2ba84..29d7f7e 100644 --- a/prompt.zsh +++ b/prompt.zsh @@ -80,9 +80,11 @@ function promptSetMultiplexerTabTitle () { if [[ "$TERM" == "screen" ]]; then if [[ "$1" == "" ]]; then local CMD=${1[(wr)^(*=*|sudo|-*)]} - echo -n "\ek$CMD\e\\" + echo -n "\ekttt$CMD\e\\" else - echo -n "\ek$1\e\\" + local title="$1 ttt" # I dont know how to prevent errors on one word strings + title=$title[(w)1] + echo -n "\ek$title\e\\" fi fi }