Add ssht command to use tmux for ssh sessions
This commit is contained in:
parent
7c276e1325
commit
b1b034f6e0
1 changed files with 5 additions and 0 deletions
5
.zshrc.d/008-ssh-tmux
Normal file
5
.zshrc.d/008-ssh-tmux
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#automatically use tmux whenever we ssh to a server
|
||||||
|
|
||||||
|
function ssht(){
|
||||||
|
ssh $* -t 'tmux a || tmux || /bin/bash'
|
||||||
|
}
|
Loading…
Reference in a new issue