limit the tmxu title to one word
This commit is contained in:
parent
d201c206e5
commit
2813ab27ff
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue