dotfiles/shell/.config/shell/zshrc.d/6-ssht-tmux-attaching.zsh
2019-12-29 23:12:13 +01:00

6 lines
129 B
Bash

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