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

5 lines
114 B
Bash
Raw Normal View History

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