Allow tmux layout to work outside of tmux

This commit is contained in:
Ryan Hughes
2026-02-17 16:02:09 -05:00
parent 7bb35f82ae
commit 69617397f5
+5
View File
@@ -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"