]> gitweb.fluxo.info Git - termplex.git/commitdiff
Enhancing window_title()
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Oct 2014 18:36:39 +0000 (16:36 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Oct 2014 18:36:39 +0000 (16:36 -0200)
shell

diff --git a/shell b/shell
index 0d6758e50cc700cc29994dc34c36035e69d2b2c9..4c4321af0625c9b1b52d6703e4bc9f3bef094290 100755 (executable)
--- 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
 }