Alexander Zeitler
Alexander Zeitler

Reputation: 13109

tmuxinator only runs commands of first pane correctly

I have a .tmuxinator.yml which looks like this:

pre_window:
windows:
  - workspace:
      layout: even-vertical
      panes:
        - health:
            - printf '\033]2;%s\033\\' 'healthcheck'
            - cd dev-env
            - clear
        - work:
            - printf '\033]2;%s\033\\' 'workspace'
            - clear
  - api:
      layout: even-vertical
      panes:
        - database:
            - printf '\033]2;%s\033\\' 'api-database'
            - cd api
            - docker-compose up
        - server:
            - printf '\033]2;%s\033\\' 'api'
            - cd api
            - yarn watch
        - workspace:
            - printf '\033]2;%s\033\\' 'api-workspace'
            - cd api
            - clear

This used to work but now it only runs the first pane commands correctly which means it just doesn't call the commands after the printf ... statements for any other than the first one in each window.

Update: removing the `printf ...' statements seems to fix it but I would like to keep them.

I'm using

I've double checked the line endings using cat -e .tmuxinator.yml.

Upvotes: 1

Views: 312

Answers (0)

Related Questions