dotfiles/.config/shell/zshrc.d/6-ssht-tmux-attaching.zsh

7 lines
129 B
Bash
Raw Normal View History

2019-07-24 05:33:28 +00:00
#!/bin/zsh
# automatically use tmux whenever we ssh to a server
2019-07-24 09:32:04 +00:00
function ssht() {
2019-07-24 05:33:28 +00:00
ssh "$@" -t 'tmux a || tmux || /bin/bash'
}