dotfiles/bin/ssh
Klesh Wong ce5e68d2ee ...
2021-07-02 06:51:14 +08:00

18 lines
295 B
Bash
Executable File

#!/bin/bash
#if test -n "$TMUX"
#tmux rename-window $argv[-1]
#/bin/ssh $argv
#
#end
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