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

5
bin/t
View file

@ -53,7 +53,10 @@ if tmux has-session -t "${session_name}" 2> /dev/null; then
fi fi
# If a .tmux file exists, run it with the generated session name and path. # 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}" "${session_path}/.tmux" "${session_name}" "${session_path}"
exit exit
elif [[ -e "${session_path}/.ignored/.tmux" ]]; then elif [[ -e "${session_path}/.ignored/.tmux" ]]; then

View file

@ -4,6 +4,8 @@ in {
programs.tmux = { programs.tmux = {
enable = true; enable = true;
tmuxinator.enable = true;
terminal = "tmux-256color"; terminal = "tmux-256color";
extraConfig = '' extraConfig = ''