aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-12 11:36:33 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-12 11:36:33 -0300
commit59b85dea3157f8767502c1d69fb5735414aecf24 (patch)
tree91681266f394d2f8249940411d0de47e786bcfe9
parent320d3bdc004f4999a93eec976918cf9eb68619b8 (diff)
downloadtermplex-59b85dea3157f8767502c1d69fb5735414aecf24.tar.gz
termplex-59b85dea3157f8767502c1d69fb5735414aecf24.tar.bz2
Set tmux window name
-rwxr-xr-xshell2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell b/shell
index e41aa30..ae1d7e3 100755
--- 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 "$*"