From 59b85dea3157f8767502c1d69fb5735414aecf24 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 12 Sep 2017 11:36:33 -0300 Subject: Set tmux window name --- shell | 2 ++ 1 file changed, 2 insertions(+) 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 "$*" -- cgit v1.2.3