From f55e19b6b75fed6ad2f53f29d646c56d99f64407 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 27 Mar 2024 09:33:33 +0000 Subject: [PATCH] Add tmuxinator configuration --- .tmux | 24 ------------------------ .tmuxinator.yml | 6 ++++++ 2 files changed, 6 insertions(+), 24 deletions(-) delete mode 100755 .tmux create mode 100644 .tmuxinator.yml diff --git a/.tmux b/.tmux deleted file mode 100755 index f7be89c..0000000 --- a/.tmux +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -set -o nounset - -session_name="${1:-'build-configs'}" -session_path="${2:-$(pwd)}" - -if tmux has-session -t="${session_name}" 2> /dev/null; then - tmux switch-client -t "${session_name}" 2> /dev/null || - tmux attach -t "${session_name}" - exit -fi - -tmux new-session -d -s "${session_name}" -n vim -c "${session_path}" - -# 1. Main window: Vim. -tmux send-keys -t "${session_name}:vim" "nvim" Enter - -# 2. General shell use. -tmux new-window -t "${session_name}" -c "${session_path}" - -tmux switch-client -t "${session_name}:vim.left" || - tmux attach -t "${session_name}:vim.left" diff --git a/.tmuxinator.yml b/.tmuxinator.yml new file mode 100644 index 0000000..52354bc --- /dev/null +++ b/.tmuxinator.yml @@ -0,0 +1,6 @@ +name: build-configs +root: . + +windows: + - vim: nvim + - shell: