aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tmux/.local
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/.local')
-rwxr-xr-xtmux/.local/bin/tmux-ssh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux/.local/bin/tmux-ssh b/tmux/.local/bin/tmux-ssh
index b1875e2..6aa5911 100755
--- a/tmux/.local/bin/tmux-ssh
+++ b/tmux/.local/bin/tmux-ssh
@@ -28,10 +28,10 @@ if [ -z "$1" ]; then
fi
if [ "$1" = "localhost" ] || [ "$1" = "$HOST" ]; then
- tmux detach -E 'tmux attach'
+ tmux detach -E 'tmux new -A'
else
if ! tmux -L ssh has-session -t "$1"; then
- tmux -L ssh new-session -ds "$1" ssh -t "$1" zsh -l -c tmux new -As "$USER"
+ tmux -L ssh new-session -ds "$1" ssh -t "$1" "zsh -l -c 'tmux new -A'"
fi
if [ -z "$TMUX" ]; then