From: Maximilian Friedersdorff Date: Thu, 13 Sep 2018 11:56:31 +0000 (+0100) Subject: Automatically connect to existing tmux session if exists X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=5838d584dcfd4d4d532b0b2ea2dd024d44b26b10;p=max%2Fdotfiles.git Automatically connect to existing tmux session if exists --- 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 \ \"$@\"