aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-10-24 16:36:39 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-10-24 16:36:39 -0200
commitad1a39d82d3c707f02d4660d8028d05b8ec70b6b (patch)
tree027ff2682e0abd30803777bf4078da376189ba53
parent6c6fa04b79902363af3b049fb8a749b40eafcc9b (diff)
downloadtermplex-ad1a39d82d3c707f02d4660d8028d05b8ec70b6b.tar.gz
termplex-ad1a39d82d3c707f02d4660d8028d05b8ec70b6b.tar.bz2
Enhancing window_title()
-rwxr-xr-xshell4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell b/shell
index 0d6758e..4c4321a 100755
--- a/shell
+++ b/shell
@@ -12,9 +12,9 @@ COMMAND="$2"
# http://stackoverflow.com/questions/899609/gnu-screen-run-script-that-sends-commands-to-the-screen-session-it-is-being-run
function window_title {
if [ -n "$STY" ]; then
- screen -p $WINDOW -X title $1
+ screen -p $WINDOW -X title "$*"
else
- xtitle $1
+ xtitle "$*"
fi
}