From d355e9bc010e3019a047ad94300b0f3cd4060edf Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Mon, 5 May 2025 09:46:26 +0200 Subject: [PATCH] fix(tmux): avoid index error creating new window And ensure new windows is created after the last one --- modules/home-manager/cli/tmux/files/create-tmux-session.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager/cli/tmux/files/create-tmux-session.sh b/modules/home-manager/cli/tmux/files/create-tmux-session.sh index 3184124..1e8b3f9 100755 --- a/modules/home-manager/cli/tmux/files/create-tmux-session.sh +++ b/modules/home-manager/cli/tmux/files/create-tmux-session.sh @@ -104,7 +104,7 @@ tmux_hsplit() { tmux_neww() { local name="$1" debug "execute neww with name '${name}'" - local command=(tmux new-window -t "$SESSION" -c "$CURRENT_PATH") + local command=(tmux new-window -t "${SESSION}:$" -c "$CURRENT_PATH" -a) if [[ -n "$name" ]]; then command+=(-n "$name") fi