From 5838d584dcfd4d4d532b0b2ea2dd024d44b26b10 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 13 Sep 2018 12:56:31 +0100 Subject: [PATCH] Automatically connect to existing tmux session if exists --- bash/.bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.bash_aliases b/bash/.bash_aliases index 40b2d03..d5cc9d5 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -44,7 +44,7 @@ function ssh_in() { i3-sensible-terminal -e \ sh -c \ "ssh \ - -o RemoteCommand=\"/bin/sh -c 'exec tmux -f ~/.tmux_ssh.conf'\" \ + -o RemoteCommand=\"/bin/sh -c 'exec tmux -f ~/.tmux_ssh.conf new -As remote'\" \ -S \"$control_file\" \ -t \ \"$@\" -- 2.46.2