Add ssht command to use tmux for ssh sessions

This commit is contained in:
Marty Oehme 2019-02-04 16:26:23 +01:00
parent 7c276e1325
commit b1b034f6e0
1 changed files with 5 additions and 0 deletions

5
.zshrc.d/008-ssh-tmux Normal file
View File

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