From 84988e47ea74f41ba06ab7a663aebd20ca9db663 Mon Sep 17 00:00:00 2001 From: mg Date: Tue, 8 Feb 2022 09:12:25 +0100 Subject: [PATCH] =?UTF-8?q?bash:=20ssh=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mg --- .bash_extra | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_extra b/.bash_extra index 4609b4e..d85647c 100644 --- a/.bash_extra +++ b/.bash_extra @@ -130,6 +130,9 @@ function ssh { tmux rename-window ""${@: -1}"" fi command ssh "$@" + if [ -n "${TMUX}" ]; then + tmux rename-window "`hostname -f`" + fi } function gcm { # übergibt alle argumente an git commit -m als commit nachricht