Enable tmuxinator

This is a potential replacement for my custom `.tmux` files.
This commit is contained in:
Oliver Davies 2024-03-26 20:45:00 +00:00
parent 6287b83d33
commit f2db3d29f7
2 changed files with 6 additions and 1 deletions
bin

5
bin/t
View file

@ -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