From f2db3d29f7951ba3442ffefb574fa05fc19d2f22 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 26 Mar 2024 20:45:00 +0000 Subject: [PATCH] Enable tmuxinator This is a potential replacement for my custom `.tmux` files. --- bin/t | 5 ++++- lib/shared/modules/tmux.nix | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/t b/bin/t index 7d589ac..2a0b2e8 100755 --- a/bin/t +++ b/bin/t @@ -53,7 +53,10 @@ if tmux has-session -t "${session_name}" 2> /dev/null; then fi # If a .tmux file exists, run it with the generated session name and path. -if [[ -e "${session_path}/.tmux" ]]; then +if [[ -e "${session_path}/.tmuxinator.yml" ]]; then + cd "${session_path}" && tmuxinator start + exit +elif [[ -e "${session_path}/.tmux" ]]; then "${session_path}/.tmux" "${session_name}" "${session_path}" exit elif [[ -e "${session_path}/.ignored/.tmux" ]]; then diff --git a/lib/shared/modules/tmux.nix b/lib/shared/modules/tmux.nix index 6d5e0e7..72d7b4f 100644 --- a/lib/shared/modules/tmux.nix +++ b/lib/shared/modules/tmux.nix @@ -4,6 +4,8 @@ in { programs.tmux = { enable = true; + tmuxinator.enable = true; + terminal = "tmux-256color"; extraConfig = ''