From bd16761fa31c4583b6b4a8ecbff9af6ea6654c47 Mon Sep 17 00:00:00 2001 From: Olivier Lalonde Date: Sat, 29 Oct 2016 01:25:43 -0700 Subject: [PATCH] launch tmux window instead of iTerm2 if tmux is running --- src/kube-solo-install.command | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kube-solo-install.command b/src/kube-solo-install.command index 9de382f..cf5fe78 100755 --- a/src/kube-solo-install.command +++ b/src/kube-solo-install.command @@ -45,5 +45,8 @@ fi # initial init - open -a iTerm.app "$1"/first-init.command + tmuxcmd=/usr/local/bin/tmux + ${tmuxcmd} list-sessions \ + && ${tmuxcmd} new-window -n "kube-solo" "$1"/first-init.command \ + || open -a iTerm.app "$1"/first-init.command