0

I want to use tmuxinator to open panes (and run commands with an argument in each) by looping through a bash array.

Is that possible? How would I do that?

1 Answer 1

2

I'm not intimately familiar with Bash array syntax, so there may be a more succinct way to pass the array as an argument, but the following should be enough to get you started:

# ~/.tmuxinator/iterate.yml

name: iterate
root: ~/
windows:
  - one:
      panes:
        <%- args.each do |arg| %>
        - echo <%= arg %>
        <%- end %>
arr=(Hello World)
tmuxinator start iterate ${arr[*]}

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.