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

7 lines
128 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
function ssht(){
2019-07-24 05:33:28 +00:00
ssh "$@" -t 'tmux a || tmux || /bin/bash'
}