dotfiles/bin/s
2021-07-07 22:22:55 +08:00

11 lines
208 B
Bash
Executable File

#!/bin/bash
tmux_auto_rename() {
tmux setw automatic-rename
}
[ -n "$TMUX" ] && trap tmux_auto_rename INT
[ -n "$TMUX" ] && tmux rename-window "${@:-1}"
/bin/ssh "$@"
[ -n "$TMUX" ] && tmux_auto_rename