]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Automatically connect to existing tmux session if exists
authorMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 13 Sep 2018 11:56:31 +0000 (12:56 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 13 Sep 2018 11:56:31 +0000 (12:56 +0100)
bash/.bash_aliases

index 40b2d03b516a3b067698e050795225667c81976d..d5cc9d5ca933872062bbcccab5a85f84f5a0cfe1 100644 (file)
@@ -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 \
       \"$@\"