]> gitweb.fluxo.info Git - termplex.git/commitdiff
Shell: change title for the specific window
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 14 Oct 2014 14:25:45 +0000 (11:25 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 14 Oct 2014 14:25:45 +0000 (11:25 -0300)
shell

diff --git a/shell b/shell
index e2a48c13981c4bbc3f72d33fafba35b5f1b7d0ae..aa1b8d2eebed6f3d2e8482eebfb6494a93421060 100755 (executable)
--- a/shell
+++ b/shell
@@ -12,7 +12,7 @@ COMMAND="$2"
 # http://stackoverflow.com/questions/899609/gnu-screen-run-script-that-sends-commands-to-the-screen-session-it-is-being-run
 function screen_title {
   if [ -n "$STY" ]; then
-    screen -X title $1
+    screen -p $WINDOW -X title $1
   fi
 }