changed ssh function, so that the name of the local machine is displayed after disconnect from ssh

This commit is contained in:
Stefan Friese 2024-03-25 17:42:47 +01:00
parent 82781b78e1
commit 734b972df0
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ killport () { lsof -ti ":$1" | xargs kill -9; }
ssh() {
tmux rename-window "$*"
command ssh "$@"
tmux rename-window -t${TMUX_PANE} "`hostname -s`:$0"
# exit
}