]> gitweb.fluxo.info Git - termplex.git/commitdiff
Set tmux window name
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 12 Sep 2017 14:36:33 +0000 (11:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 12 Sep 2017 14:36:33 +0000 (11:36 -0300)
shell

diff --git a/shell b/shell
index e41aa30c39e5529ee8d0531b0f88060d4b0b3872..ae1d7e3697f4df0d9b35c94aa1919e2b94f6a9a5 100755 (executable)
--- a/shell
+++ b/shell
@@ -21,6 +21,8 @@ AUTOSSH="autossh $MONITORING"
 function window_title {
   if [ -n "$STY" ]; then
     screen -p $WINDOW -X title "$*"
+  elif [ -n "$TMUX" ]; then
+    tmux rename-window "$*"
   else
     if which xtitle &> /dev/null; then
       xtitle "$*"