Support tmuxinator configurations in .ignored

Also use tmuxinator if the `.tmuxinator.yml` file is within a `.ignored`
directory and ignored from Git.
This commit is contained in:
Oliver Davies 2024-03-27 08:53:34 +00:00
parent f2db3d29f7
commit a6a81f0cd6

3
bin/t
View file

@ -56,6 +56,9 @@ fi
if [[ -e "${session_path}/.tmuxinator.yml" ]]; then
cd "${session_path}" && tmuxinator start
exit
elif [[ -e "${session_path}/.ignored/.tmuxinator.yml" ]]; then
cd "${session_path}" && tmuxinator start --project-config "${session_path}/.ignored/.tmuxinator.yml"
exit
elif [[ -e "${session_path}/.tmux" ]]; then
"${session_path}/.tmux" "${session_name}" "${session_path}"
exit