diff --git a/default/bash/functions b/default/bash/functions index ec144b8e..a485ea61 100644 --- a/default/bash/functions +++ b/default/bash/functions @@ -129,6 +129,11 @@ lip() { # Create a tmux layout for dev with editor, ai, and terminal tml() { + if [[ -z $TMUX ]]; then + tmux new-session "bash -ic 'tml $1; exec bash'" + return + fi + local current_dir="${PWD}" local editor_pane ai_pane local ai="$1"