jezdez / envdir

A Python port of daemontools' envdir.
https://envdir.readthedocs.io/
MIT License
229 stars 28 forks source link

Nested variables support #46

Closed vonpupp closed 7 years ago

vonpupp commented 8 years ago

Hello,

I have a tmuxp profile as follows:

session_name: TEST
shell_command_before: envshell ./envars
windows:
- window_name: TEST
  layout: tiled
  panes:
    - shell_command:
      - docker exec -it $ODOOCONT /bin/bash
    - shell_command:
      - docker exec -it $ODOOCONT /bin/bash

As you can see for each pane I am loading with envshell the envars folder, which contains one variable as follows:

cat envars/ODOOCONT
test_container_19

I would like to do something like: ODOOCONT=$ODOOCONTAINER

Where $ODOOCONTAINER is defined on my local shell session before executing tmuxp. This doesn't work but is there any other way to achieve this?

Thank you!

piotr-dobrogost commented 7 years ago

This is probably duplicate of issue #27

vonpupp commented 7 years ago

Thanks. Yes, it is the same idea. Do you want me to close it?