From cf9971fed41c63d539ed5e11e91f38565f44a738 Mon Sep 17 00:00:00 2001 From: eeemsi Date: Sat, 29 Jul 2023 15:32:55 +0200 Subject: [PATCH] feat (zshrc): create or reuse a tmux session while using ssh --- zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zshrc b/zshrc index c066615..f1f758a 100644 --- a/zshrc +++ b/zshrc @@ -72,6 +72,7 @@ alias l='ls -F -h' alias la='ls -F -h -A' alias mv='mv -v' alias view='vim -R' +alias tmux-ssh="ssh -t -o RemoteCommand='tmux attach-session -d || tmux new-session'" # Comfortable git aliases alias g='git'