aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "$*"