dotfiles/.zshrc.d/008-ssh-tmux

5 lines
113 B
Plaintext

#automatically use tmux whenever we ssh to a server
function ssht(){
ssh $* -t 'tmux a || tmux || /bin/bash'
}