From 21e7ecd48f499d32ff995b12aed1d86b8b1d4344 Mon Sep 17 00:00:00 2001 From: quak Date: Sat, 4 Jan 2025 12:10:39 +0100 Subject: [PATCH] fixed default path for new tmux windows.. --- misc/scripts/default-tmux-session | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/scripts/default-tmux-session b/misc/scripts/default-tmux-session index 1e6b0ff..aa2550a 100755 --- a/misc/scripts/default-tmux-session +++ b/misc/scripts/default-tmux-session @@ -15,9 +15,11 @@ if $(tmux has-session -t ${DEFAULT_SESSION} 2>/dev/null); then else # dont forget the '-d' option, otherwise the session is closed # before the rest of the commands are executed - tmux new-session -d -s "$DEFAULT_SESSION" -n "dotfiles" -c "$HOME/dotfiles" + tmux new-session -d -s "$DEFAULT_SESSION" -n "temp" -c "$HOME" # create dummy window to set default path for new windows + tmux new-window -t "$DEFAULT_SESSION" -n "dotfiles" -c "$HOME/dotfiles" tmux new-window -t "$DEFAULT_SESSION" -n "docs" -c "$HOME/collection" tmux new-window -t "$DEFAULT_SESSION" -n "stuff" -c "$HOME" + tmux kill-window -t "temp" # this causes the script to exit only, when the session is ended or detached # it also causes tmux's detach command with hang up signal to fail