From: Silvio Rhatto Date: Tue, 12 Sep 2017 14:36:33 +0000 (-0300) Subject: Set tmux window name X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=59b85dea3157f8767502c1d69fb5735414aecf24;p=termplex.git Set tmux window name --- 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 "$*"