Allow tmux layout to work outside of tmux
This commit is contained in:
@@ -129,6 +129,11 @@ lip() {
|
|||||||
|
|
||||||
# Create a tmux layout for dev with editor, ai, and terminal
|
# Create a tmux layout for dev with editor, ai, and terminal
|
||||||
tml() {
|
tml() {
|
||||||
|
if [[ -z $TMUX ]]; then
|
||||||
|
tmux new-session "bash -ic 'tml $1; exec bash'"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
local current_dir="${PWD}"
|
local current_dir="${PWD}"
|
||||||
local editor_pane ai_pane
|
local editor_pane ai_pane
|
||||||
local ai="$1"
|
local ai="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user