From eed9c143ea8aabb99b3135ab0cf0ad04ff089010 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 20 Nov 2024 08:18:35 -0500 Subject: [PATCH] feat: Updates zsh tns (tmux new session) function --- zsh/config/functions/tns | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/config/functions/tns b/zsh/config/functions/tns index 3d57307..db6000e 100755 --- a/zsh/config/functions/tns +++ b/zsh/config/functions/tns @@ -34,7 +34,8 @@ function tns() { # create a session if it doesn't exist, in the background, so # that we can switch sessions. if ! tmux has-session -t "$session_name" 2> /dev/null; then - tmux new-session -ds "$session_name" -c "$tmux_dir" + tmux new-session -ds "$session_name" -c "$tmux_dir" -n "editor" "$EDITOR ." + tmux new-window -d -n "terminal" -c "$tmux_dir" fi # attach to the session or switch if it already exists.