changed ssh function, so that the name of the local machine is displayed after disconnect from ssh
This commit is contained in:
parent
82781b78e1
commit
734b972df0
|
@ -5,6 +5,7 @@ killport () { lsof -ti ":$1" | xargs kill -9; }
|
||||||
ssh() {
|
ssh() {
|
||||||
tmux rename-window "$*"
|
tmux rename-window "$*"
|
||||||
command ssh "$@"
|
command ssh "$@"
|
||||||
|
tmux rename-window -t${TMUX_PANE} "`hostname -s`:$0"
|
||||||
# exit
|
# exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue